On the relation between continuum plasticity and dislocation theories