@Override public void addMapping(@NonNull EObject eObject, @NonNull Element pivotElement) { if (pivotElement instanceof PivotObjectImpl) { ((PivotObjectImpl) pivotElement).setESObject(eObject); } Element pivotElement1 = pivotElement; if (eObject instanceof EDataType) { Type pivotType = getEcore2ASMap().get(eObject); if (pivotType != null) { // If eObject is a known synonym such as EString pivotElement1 = pivotType; // remap to the library type } } // Element pivotElement2 = pivotElement; // if (pivotElement instanceof DataType) { // Type behavioralType = ((DataType)pivotElement).getBehavioralType(); // if (behavioralType != null) { // pivotElement2 = behavioralType; // } // } // assert pivotElement1 == pivotElement2; addCreated(eObject, pivotElement1); }