if ( DimensionValue.DEFAULT_UNIT.equalsIgnoreCase( value.getUnits( ) ) )
if ( DimensionValue.DEFAULT_UNIT.equalsIgnoreCase( unit ) )
	private void validateUnits( ReportDesign design, PropertyDefn defn,			DimensionValue value )			throws PropertyValueException	{		assert value != null;		String unit = value.getUnits( );		if ( DimensionValue.DEFAULT_UNIT.equalsIgnoreCase( value.getUnits( ) ) )		{			unit = getDefaultUnit( design, defn );		}		IChoiceSet units = defn.getAllowedChoices( );		assert units != null;		if ( !StringUtil.isBlank( unit ) && !units.contains( unit ) )		{			// unit not allowed.			throw new PropertyValueException( null, defn, value,					PropertyValueException.DESIGN_EXCEPTION_UNIT_NOT_ALLOWED );		}	}