public static QueryTreeBuilder getQueryTreeBuilder(String language) throws InvalidQueryException
   {
      for (int i = 0; i < BUILDERS.size(); i++)
      {
         QueryTreeBuilder builder = (QueryTreeBuilder)BUILDERS.get(i);
         if (builder.canHandle(language))
         {
            return builder;
         }
      }
      throw new InvalidQueryException("Unsupported language: " + language);
   }
public static QueryTreeBuilder getQueryTreeBuilder ( String language ) throws InvalidQueryException { for ( int i = 0 ; i < BUILDERS . size ( ) ; i ++ ) { QueryTreeBuilder builder = ( QueryTreeBuilder ) BUILDERS . get ( i ) ; if ( builder . canHandle ( language ) ) { return builder ; } } throw new InvalidQueryException ( "Unsupported language: " + language ) ; }
Returns the <code>QueryTreeBuilder</code> for <code>language</code>.

@param language the language of the query statement.
@return the <code>QueryTreeBuilder</code> for <code>language</code>.
@throws InvalidQueryException if there is no query tree builder for
<code>language</code>.