}
}
public static Property getInstanceProperty(DataObject dataObject, String propertyName)
{
ClassImpl type = (ClassImpl)dataObject.getType();
Property property = type.getProperty(propertyName);
if (property == null)
{
property = type.getOpenProperty((EObject)dataObject, propertyName);
//throw new IllegalArgumentException("Type '" + dataObject.getType().getName() + "' does not have a property named '" + propertyName + "'");
}
return property;
}