if (Logging.defaultLogger().debugEnabled()) {
if (Logging.defaultLogger().isDebugEnabled()) {
  public static Mass getTaskMass(Task task) {    GLMAsset assetToBePacked = (GLMAsset) task.getDirectObject();    if (assetToBePacked.hasPhysicalPG()) {      Mass massPerEach = assetToBePacked.getPhysicalPG().getMass();      double taskWeight = task.getPreferredValue(AspectType.QUANTITY) *	massPerEach.getShortTons();      if (Logging.defaultLogger().debugEnabled()) {	Logging.defaultLogger().debug("Sizer.getTaskMass: Quantity: " + 				      task.getPreferredValue(AspectType.QUANTITY) + 				      " * massPerEach: " + massPerEach.getShortTons() +				      " = " + taskWeight + " short tons");	return new Mass(taskWeight, Mass.SHORT_TONS);      }    } else {      Logging.defaultLogger().warn("Sizer.getTaskMass: asset - " + 				   assetToBePacked + 				   " - does not have a PhysicalPG. " +				   "Assuming QUANTITY preference is in stort tons.");      return new Mass(task.getPreferredValue(AspectType.QUANTITY), 		      Mass.SHORT_TONS);    }  }