if (nPe.getName().equals(
fragments[fragments.length - 1])
&& nPe.getNamespacesAsString().equals(
imp.getNamespacesAsString())) {
StructuralTypeDefinition dtDef = (StructuralTypeDefinition) EcoreUtil
.copy(nPe);
if (pck.getTypeDefinition(
dtDef.getNamespacesAsString(),
dtDef.getName()) == null) {
pck.getTypeDefinitions().add(
(StructuralTypeDefinition) dtDef);
peImp.setType(dtDef);