Object result = values.get( node.getValue( ) );
Object result = null; if ( values != null ) { result = values.get( node.getValue( ) ); }
	public Object visitValue( TextTemplate.ValueNode node, Object value )	{		String text = "";		String format = node.getFormat( );		Object result = values.get( node.getValue( ) );		if ( "html".equalsIgnoreCase( format ) )		{			if ( result != null )			{				text = result.toString( );			}		}		else		{			if ( result != null )			{				if ( result instanceof Number )				{					NumberFormatter fmt = context.getNumberFormatter( format );					text = fmt.format( (Number) result );				}				else if ( result instanceof String )				{					StringFormatter fmt = context.getStringFormatter( format );					text = fmt.format( (String) result );				}				else if ( result instanceof Date )				{					DateFormatter fmt = context.getDateFormatter( format );					text = fmt.format( (Date) result );				}				else				{					text = result.toString( );				}			}			text = encodeHtmlText( text );		}		buffer.append( text );		return value;	}