@ Override public QueryResult execute ( String query , String language ) throws RepositoryException { logger . trace ( "Executing query: {0}" , query ) ; // Create the query ... final Query jcrQuery = getLocalSession ( ) . getSession ( ) . getWorkspace ( ) . getQueryManager ( ) . createQuery ( query , language ) ; return jcrQuery . execute ( ) ; }
This execute method is used for redirection so that the JNDI implementation can control calling execute .