*/
protected ClassifierFacade getType(Object modelElement)
{
try
{
final Introspector introspector = Introspector.instance();
ClassifierFacade type = null;
String typeProperty = "type";
// only continue if the model element has a type
if (introspector.isReadable(modelElement, typeProperty))
{
type = (ClassifierFacade)introspector.getProperty(modelElement, typeProperty);
}
// try for return type if type wasn't found
typeProperty = "returnType";
if (type == null && introspector.isReadable(modelElement, typeProperty))
{
type = (ClassifierFacade)introspector.getProperty(modelElement, typeProperty);
}
return type;
}
catch (final Throwable throwable)
{