public TemplateInfo get(String templateName) {
        Response<TemplateInfo> response = ClientUtils.executeHttpCall(templateApi.get(templateName));

        if (response.isSuccess()) {
            return response.getData();
        }
        if (response.getErrMsg().contains("not exist")) {
            return null;
        }
        throw new RuntimeException(response.getErrMsg());
    }
Get template by the given template name.
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/TemplateClient.java