public void setType(MClassifier type) { Object target = getTarget(); if (target instanceof MAssociationEnd) { ((MAssociationEnd) target).setType(type); } }