private <T> boolean getAcceptReadAndWriteParamValue(T paramCntr,
            StringBuilder sBuffer,
            ProcessResult result) {
        if (!WebParameterUtils.getBooleanParamValue(paramCntr,
                WebFieldDef.ACCEPTPUBLISH, false, null, sBuffer, result)) {
            return result.isSuccess();
        }
        Boolean publishParam = (Boolean) result.getRetData();
        if (!WebParameterUtils.getBooleanParamValue(paramCntr,
                WebFieldDef.ACCEPTSUBSCRIBE, false, null, sBuffer, result)) {
            return result.isSuccess();
        }
        Boolean subscribeParam = (Boolean) result.getRetData();
        if (publishParam == null && subscribeParam == null) {
            result.setFailResult(DataOpErrCode.DERR_ILLEGAL_VALUE.getCode(),
                    sBuffer.append("Fields ").append(WebFieldDef.ACCEPTPUBLISH.name)
                            .append(" or ").append(WebFieldDef.ACCEPTSUBSCRIBE.name)
                            .append(" must exist at this method!").toString());
            sBuffer.delete(0, sBuffer.length());
            return result.isSuccess();
        }
        result.setSuccResult(new Tuple2<>(publishParam, subscribeParam));
        return result.isSuccess();
    }
Private method to add topic info

@param withTopic
@param sBuffer
@param topicConfEntityMap
@return
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/handler/WebBrokerConfHandler.java