{
String templateName = templateMappingProvider.getTemplateNameForTopic(topicName);
if (StringTools.isEmpty(templateName))
throw new FFMQException("No template matching topic : "+topicName,"MISSING_TEMPLATE_MAPPING");
TopicTemplate topicTemplate = destinationTemplateProvider.getTopicTemplate(templateName);
if (topicTemplate == null)
throw new FFMQException("Topic template does not exist : "+templateName,"MISSING_TEMPLATE");
TopicDefinition tempDef = topicTemplate.createTopicDefinition(topicName, true);
return createTopic(tempDef);
}