@Override
    protected void process(Map<String, Object> jsonrpc2Params) throws Exception {
        //To change body of implemented methods use File | Settings | File Templates.

        if(method.equals(Constants.Method.GET_THREAD_CONTENT)){
            getThreadContent(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.CREATE_THREAD)){
            createThread(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.MODIFY_THREAD)){
            modifyThread(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.DELETE_THREAD)){
            deleteThread(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.GET_LATEST_THREADS)){
            getLatestThreads(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.CREATE_LINKED_THREAD)){
            createLinkedThread(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.MODIFY_LINKED_THREAD)){
            modifyLinkedThread(jsonrpc2Params);
        }
        else if(method.equals(Constants.Method.DELETE_LINKED_THREAD)){
            deleteLinkedThread(jsonrpc2Params);
        }
        else {
            throwJSONRPC2Error(JSONRPC2Error.METHOD_NOT_FOUND, Constants.Errors.METHOD_NOT_FOUND, method);
        }
    }