boolean result = false; if (asset == null) { return false; } SupplyClassPG pg = (SupplyClassPG)asset.searchForPropertyGroup(SupplyClassPG.class); if (pg != null) { result = type.equals(pg.getSupplyType()); } else { GLMDebug.DEBUG("AssetUtils", null, "isSupplyClassOfType(): Asset without SupplyClassPG "+ assetDesc(asset)); } return result;
boolean result = false; if (asset == null) { return false;
    public static boolean isSupplyClassOfType(Asset asset, String type) {	boolean result = false;	if (asset == null) {	    return false;	}	SupplyClassPG pg = (SupplyClassPG)asset.searchForPropertyGroup(SupplyClassPG.class);	if (pg != null) {	    result = type.equals(pg.getSupplyType());	} else {	    GLMDebug.DEBUG("AssetUtils", null, "isSupplyClassOfType(): Asset without SupplyClassPG "+			   assetDesc(asset));	}	return result;    }