EClassifier classifier = FxgPackage.eINSTANCE.getEClassifier(localName);
FXGElement element = null;
if (classifier == null) {
if (graphic.get_children().get(0) instanceof Library) {
Library l = (Library) graphic.get_children().get(0);
for (Definition d : l.get_children()) {
if (localName.equals(d.getName())) {
element = EcoreUtil.copy(d.get_children().get(0));
break;
}
}