System.err.println("Found AN ASSET, assets = " + assets + ", typeIdPG = " + typeIdPG);
  public static boolean checkInventoryRelated(Collection assets, Object o)  {    if (!(o instanceof Inventory))      return false;          Inventory inv = (Inventory)o;    LogisticsInventoryPG logInvPG=null;    logInvPG = (LogisticsInventoryPG)inv.searchForPropertyGroup(LogisticsInventoryPG.class);    if (logInvPG == null)      return false;    Asset a1 = logInvPG.getResource();    if (a1 == null) {      System.err.println("no asset in Inventory in checkInventoryRelated");      return false;    }    TypeIdentificationPG typeIdPG = a1.getTypeIdentificationPG();    if (typeIdPG == null) {      System.err.println(" No typeIdentificationPG for asset");      return false;    }System.err.println("Found AN ASSET, assets = " + assets + ", typeIdPG = " + typeIdPG);        return assets == null ||           assets.contains(typeIdPG.getTypeIdentification());  }