throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Double",
{ throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, new Object[]{ source.toString( ), "Double" },
	public static Double toDouble( Object source ) throws BirtException	{		if ( source == null )			return null;		else if ( source instanceof Integer )		{			double doubleValue = ( (Integer) source ).doubleValue( );			return new Double( doubleValue );		}		else if ( source instanceof BigDecimal )		{			double doubleValue = ( (BigDecimal) source ).doubleValue( );			return new Double( doubleValue );		}		else if ( source instanceof Boolean )		{			if ( true == ( (Boolean) source ).booleanValue( ) )				return new Double( 1d );			return new Double( 0d );		}		else if ( source instanceof Date )		{			double doubleValue = ( (Date) source ).getTime( );			return new Double( doubleValue );		}		else if ( source instanceof Double )		{			return (Double) source;		}		else if ( source instanceof String )		{			try			{				return Double.valueOf( (String) source );			}			catch ( NumberFormatException e )			{				throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS,						"Double", resourceBundle );			}		}		else			throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Double",					resourceBundle );	}