private void modifyReply(Map<String, Object> jsonrpc2Params) throws Exception {

        Map<String, Object> params = getParams(jsonrpc2Params,
                new NullableExtendedParam(Constants.Param.Name.REPLY_ID, false),
                new NullableExtendedParam(Constants.Param.Name.TEXT, true));

        int replyId = (Integer)params.get(Constants.Param.Name.REPLY_ID);
        String text = (String) params.get(Constants.Param.Name.TEXT);
        Reply reply = em.find(Reply.class, (Integer) params.get(Constants.Param.Name.REPLY_ID));

        if(reply.getAccount().getId() != accountId){
            throwJSONRPC2Error(JSONRPC2Error.INVALID_PARAMS, Constants.Errors.ACTION_NOT_ALLOWED);
        }

        if(reply == null){
            responseParams.put(Constants.Param.Status.STATUS, Constants.Param.Status.OBJECT_NOT_FOUND);
            return;
        }
        if(text != null){
            reply.setText(text);
        }
        reply.setTime(getCurrentTime());
        persistObjects(reply);

        responseParams.put(Constants.Param.Status.STATUS, Constants.Param.Status.SUCCESS);
        responseParams.put(Constants.Param.Name.REPLY, serialize(reply));
    }