if (AssetUtils.isAssetOfType((Asset)pp.getIndirectObject(), "Inventory")) { return true;
if (pp != null) { try { if (((String)pp.getIndirectObject()).startsWith("Inventory")) { return true; } } catch (ClassCastException exc) { return false; }
    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 (AssetUtils.isAssetOfType((Asset)pp.getIndirectObject(), "Inventory")) {		    return true;		} 	    }	}	return false;    }