public static boolean getAndValidTopicNameInfo(HttpServletRequest req,
            MetaDataService defMetaDataService,
            boolean required,
            String defValue,
            StringBuilder sBuffer,
            ProcessResult result) {
        if (!WebParameterUtils.getStringParamValue(req,
                WebFieldDef.COMPSTOPICNAME, required, defValue, sBuffer, result)) {
            return result.isSuccess();
        }
        Set<String> topicNameSet = (Set<String>) result.getRetData();
        Set<String> existedTopicSet =
                defMetaDataService.getDeployedTopicSet();
        for (String topic : topicNameSet) {
            if (!existedTopicSet.contains(topic)) {
                result.setFailResult(sBuffer.append(WebFieldDef.COMPSTOPICNAME.name)
                        .append(" value ").append(topic)
                        .append(" is not configure, please configure first!").toString());
                sBuffer.delete(0, sBuffer.length());
                break;
            }
        }
        return result.isSuccess();
    }
Get and valid topicName value

@param req        Http Servlet Request
@param defMetaDataService  configure manager
@param required   a boolean value represent whether the parameter is must required
@param defValue   a default value returned if the field not exist
@param sBuffer     string buffer
@param result     process result of parameter value
@return process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java