if (((String)pp.getIndirectObject()).startsWith("Inventory")) {
if (((MaintainedItem)pp.getIndirectObject()).getMaintainedItemType().equals("Inventory")) {
    public static boolean isMyInventoryProjection(Task task, String myOrgName) {	PrepositionalPhrase pp = task.getPrepositionalPhrase(Constants.Preposition.FOR);	if (pp == null) {	return false;	}	Object io = pp.getIndirectObject();       if (io instanceof String) {	    String orgName = (String)io;	    if ( orgName.equals(myOrgName)) {		pp = task.getPrepositionalPhrase(Constants.Preposition.MAINTAINING);		if (pp != null) {		    try {			if (((String)pp.getIndirectObject()).startsWith("Inventory")) {			    return true;			} 		    } catch (ClassCastException exc) {			return false;		    }		} 	    }	}	return false;    }