public Response processQuery(Query query) throws IOException { // TODO process query ProcessQuery queryProcessor = new ProcessQuery(); Object obj = queryProcessor.processQuery(requestCredentials, query); if (obj instanceof Response) { return (Response) obj; } System.err.println("improper format for request"); return null; }