if(baseClassType == null || possClass == null) {
try { if (baseClassType.compareTo(INTERFACE) == 0) { return possClass instanceof MInterface; }  if (baseClassType.compareTo(ELEMENT) == 0) { return possClass instanceof MElement; }    if (baseClassType.compareTo(BUSINESS_TYPE) == 0) { if (possClass instanceof MClass) { return "<<type>>".compareTo(((MClass) possClass).getStereotype().getName()) == 0 || "<<info type>>".compareTo(((MClass) possClass).getStereotype().getName()) == 0; } }  if (baseClassType.compareTo(COMPONENT) == 0) { if (possClass instanceof MClass) { return "<<comp spec>>".compareTo(((MClass) possClass).getStereotype().getName()) == 0; } } } catch (NullPointerException npe) { }
public boolean objectMatchsType(Object possClass, String baseClassType) {	if(baseClassType == null || possClass == null) {		return false;	}		if (baseClassType.compareTo(INTERFACE) == 0) {		return possClass instanceof MInterface;	 }	if (baseClassType.compareTo(ELEMENT) == 0) {		return possClass instanceof MElement;	}	if(baseClassType.compareTo(BUSINESS_TYPE) == 0) {		if(possClass instanceof MClass) {			return "<<type>>".compareTo(((MClass) possClass).getStereotype().getBaseClass()) == 0 ||			"<<info type>>".compareTo(((MClass) possClass).getStereotype().getBaseClass()) == 0;		}	}	if(baseClassType.compareTo(COMPONENT) == 0) {		if(possClass instanceof MClass) {			return "<<comp spec>>".compareTo(((MClass) possClass).getStereotype().getBaseClass()) == 0;		}	}	return false;}