{
    if (eReferenceType == null || !isFrozen() && eReferenceType.eIsProxy())
    {
      EClassifier eType = getEType();
      if (eType instanceof EClass)
      {
        eReferenceType =(EClass)eType;
      }
    }
    return eReferenceType;
  }