if ( width != null ) size.x = DimensionUtil.convertTo( width, sessionUnit, sessionUnit ).getMeasure( );
	public Point getSize( ReportDesign design )	{		// Determine height and width dimensions.		Point size = new Point( );		String type = getStringProperty( design, TYPE_PROP );		String height = null;		String width = null;		if ( type.equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_CUSTOM ) )		{			height = getStringProperty( design, HEIGHT_PROP );			width = getStringProperty( design, WIDTH_PROP );		}		else if ( type				.equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_US_LETTER ) )		{			height = US_LETTER_HEIGHT;			width = US_LETTER_WIDTH;		}		else if ( type				.equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_US_LEGAL ) )		{			height = US_LEGAL_HEIGHT;			width = US_LEGAL_WIDTH;		}		else if ( type.equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_A4 ) )		{			height = A4_HEIGHT;			width = A4_WIDTH;		}		else		{			// Choice should have been validated.			assert false;			return size;		}		// Consider orientation for standard pages sizes, but not custom size.		if ( type.equalsIgnoreCase( DesignChoiceConstants.PAGE_SIZE_CUSTOM )				&& ( getStringProperty( design, ORIENTATION_PROP )						.equalsIgnoreCase( DesignChoiceConstants.PAGE_ORIENTATION_LANDSCAPE ) ) )		{			String temp = height;			height = width;			width = temp;		}		// Convert to application units.		try		{			size.y = DimensionUtil.convertTo( height, design.getSession( ).getUnits( ),					design.getSession( ).getUnits( ) ).getMeasure( );			size.x = DimensionUtil.convertTo( width, design.getSession( ).getUnits( ),					design.getSession( ).getUnits( ) ).getMeasure( );		}		catch ( PropertyValueException e )		{			// dimension value should have be validated.			assert false;		}		return size;	}