code: public AbstractMetamodelDeclaration getMetamodel() {
  		if (metamodel != null && metamodel.eIsProxy()) {
  			InternalEObject oldMetamodel = (InternalEObject)metamodel;
  			metamodel = (AbstractMetamodelDeclaration)eResolveProxy(oldMetamodel);
  			if (metamodel != oldMetamodel) {
  				if (eNotificationRequired())
  					eNotify(new ENotificationImpl(this, Notification.RESOLVE, XtextPackage.TYPE_REF__METAMODEL, oldMetamodel, metamodel));
  			}
  		}
  		return metamodel;
  	}
docs: <!-- begin-user-doc -->
  <!-- end-user-doc -->
  @generated