private Node getNonProxyNode(IndexHits<Node> nodesFound)
    {
        Node node = null;
        if (nodesFound.hasNext())
        {
            node = nodesFound.next();
        }
        else
        {
            return null;
        }

        try
        {
            Object proxyNodeProperty = node.getProperty(PROXY_NODE_TYPE_KEY);
        }
        catch (NotFoundException e)
        {
            return node;
        }
        catch (IllegalStateException e)
        {
            return node;
        }
        return getNonProxyNode(nodesFound);
    }
private Node getNonProxyNode ( IndexHits < Node > nodesFound ) { Node node = null ; if ( nodesFound . hasNext ( ) ) { node = nodesFound . next ( ) ; } else { return null ; } try { Object proxyNodeProperty = node . getProperty ( PROXY_NODE_TYPE_KEY ) ; } catch ( NotFoundException e ) { return node ; } catch ( IllegalStateException e ) { return node ; } return getNonProxyNode ( nodesFound ) ; }
Fetches Non-proxy nodes from index hits