* @param facade the model element facade for which to find the meta class.
* @return the meta model element
*/
static ModelElement getMetaClass(ModelElementFacade facade)
{
ModelElement modelElement = null;
if (facade != null)
{
String id = facade.getId();
Collection modelElements = getModel().getCore().getModelElement().refAllOfType();
for (final Iterator iterator = modelElements.iterator(); iterator.hasNext() && modelElement == null;)
{
ModelElement element = (ModelElement)iterator.next();
if (id.equals(element.refMofId()))
{
modelElement = element;
}
}
}