BranchNode bnode = ( BranchNode ) node; final int size = bnode.getChildren().size(); for ( int ii = 0; ii < size ; ii++ )
if (node instanceof BranchNode)
    public void visit( ExprNode node )    {        if ( node instanceof SimpleNode )        {            SimpleNode snode = ( SimpleNode ) node;            String normalized = null;            try            {                if ( Character.isDigit( snode.getAttribute().charAt( 0 ) ) )                {                    normalized = ncn.normalizeByOid( snode.getAttribute(), snode.getValue() );                }                else                {                    normalized = ncn.normalizeByName( snode.getAttribute(), snode.getValue() );                }            }            catch ( NamingException e )            {                log.error( "Failed to normalize filter value: " + e.getMessage(), e );                throw new RuntimeException( e.getMessage() );            }            snode.setValue( normalized );            return;        }        BranchNode bnode = ( BranchNode ) node;        final int size = bnode.getChildren().size();        for ( int ii = 0; ii < size ; ii++ )        {            visit( ( ExprNode ) bnode.getChildren().get( ii ) );        }    }