Vector3D color = new Vector3D( LIGHT_GREEN );
if( tempNode.hasProperty( "numDocuments" ) )
{
Vector3D difference = new Vector3D( LIGHT_RED );
difference.subtract( color );
difference.dotProduct( (float)(Integer.parseInt( tempNode.getProperty( "numDocuments" ) ) )/(float)maxNumDocuments );
color.add( difference );
color.setX( (float)Math.max( 0, color.getX() ) );
color.setY( (float)Math.max( 0, color.getY() ) );
color.setZ( (float)Math.max( 0, color.getZ() ) );
color.setX( (float)Math.min( 1, color.getX() ) );