throw new RuntimeException("Error while trying to instantiate:"+queryID,e);
if ( log.isDebugEnabled() ) { e.printStackTrace(); } throw new RuntimeException("Error while trying to instantiate:" +queryID,e);
    public Query lookup(String queryID, QueryParameter...parameters)    {        Query q = null;        try        {            Class klass = Class.forName(queryID);            Constructor c = klass.getConstructor(QueryParameter[].class);            q = (Query) c.newInstance(new Object[]{parameters});        } catch (ClassNotFoundException e)        {            // Not an issue.        } catch (Exception e)        {            throw new RuntimeException("Error while trying to instantiate:"+queryID,e);        }        return q;    }