else if ( reportParameterObj instanceof Number ) { NumberFormatter nf = new NumberFormatter( locale );  if ( format != null ) { nf.applyPattern( format ); }  reportParameterValue = nf.format( ( ( Number ) reportParameterObj ) ); } else { reportParameterValue = ( reportParameterObj.toString( ) ); }
	public String format( Object reportParameterObj )	{		String reportParameterValue = null;				if ( reportParameterObj != null && locale != null )		{			if ( reportParameterObj instanceof String )			{				StringFormatter sf = new StringFormatter( locale );								if ( format != null )				{					sf.applyPattern( format );				}								reportParameterValue = sf.format( ( String ) reportParameterObj );			}			else if ( reportParameterObj instanceof Date )			{				DateFormatter df = new DateFormatter( locale );								if ( format != null )				{					df.applyPattern( format );				}								reportParameterValue = df.format( ( Date ) reportParameterObj );			}			else if ( reportParameterObj instanceof Double )			{				NumberFormatter nf = new NumberFormatter( locale );								if ( format != null )				{					nf.applyPattern( format );				}				reportParameterValue = nf.format( ( ( Double ) reportParameterObj ).doubleValue( ) );			}			else if ( reportParameterObj instanceof BigDecimal )			{				NumberFormatter nf = new NumberFormatter( locale );				if ( format != null )				{					nf.applyPattern( format );				}								reportParameterValue = nf.format( ( BigDecimal ) reportParameterObj );			}			else if ( reportParameterObj instanceof Boolean )			{				reportParameterValue = ( ( Boolean ) reportParameterObj ).toString( );			}		}				return reportParameterValue;	}