String arraySuffix = this.getArraySuffix();
if (this.getFullyQualifiedName().indexOf(arraySuffix) != -1)
{
PackageFacade packageFacade = this.getRootPackage();
String fullQualifiedName = this.getFullyQualifiedName(true);
if (this.logger.isDebugEnabled())
{
this.logger.debug(
"Looking for non-array type of element " + fullQualifiedName + " with array suffix " + arraySuffix +
", root: " + packageFacade);
this.logger.debug("Metaobject: " + this.metaObject + " its model is : " + this.metaObject.getModel());
}
nonArrayType =
(ClassifierFacade)packageFacade.findModelElement(StringUtils.replace(
fullQualifiedName,
arraySuffix,
""));
}
return nonArrayType;