"EFeatureContext " + eContextID + "' already exists");
}
//
// All OK, go ahead and create context and structure.
//
EFeatureContext eContext = new EFeatureContextImpl(this, eContextID, eIDFactory);
//
// Map context to id (required by subsequent create methods)
//
eContextMap.put(eContextID, eContext);
//
// Create structure info object
//
eContextInfo = EFeatureContextInfo.create(this,eContextID, eHints);
//
// Map structure to id
//
eContextInfoMap.put(eContextID, eContextInfo);
//
// -----------------------------------------------------
// Add EFeature as prototype.
// -----------------------------------------------------
// This is an important step. It allows the context to
// filter on any EFeature implementation, and enables
// _ANY_ EFeature implementation to be adapted into
// this context.
// -----------------------------------------------------
//
EFeaturePackage ePackage = EFeaturePackage.eINSTANCE;
eContext.eAdd(ePackage);
EFeatureInfo eFeatureInfo = EFeatureInfo.create(eContext, ePackage.getEFeature(), eHints);
//
// -----------------------------------------------------
// Validate structure (required)
// -----------------------------------------------------