if (StringUtil.isDefined(fileName)) {
String xmlFormShortName =
fileName.substring(fileName.indexOf("/") + 1, fileName.indexOf("."));
String registerId = getComponentId() + ":" + xmlFormShortName;
final String sessionCacheKey = this.getClass().getName() + registerId;
<BUG>SimpleCacheService sessionCache = getSessionCacheService().getCurrentSessionCache();
if (sessionCache.get(sessionCacheKey) == null) {</BUG>
getPublicationTemplateManager().addDynamicPublicationTemplate(registerId, fileName);
sessionCache.put(sessionCacheKey, registerId);
}

if (StringUtil.isDefined(fileName)) {
String xmlFormShortName =
fileName.substring(fileName.indexOf("/") + 1, fileName.indexOf("."));
String registerId = getComponentId() + ":" + xmlFormShortName;
final String sessionCacheKey = this.getClass().getName() + registerId;
SimpleCache sessionCache = getSessionCacheService().getCache();
if (sessionCache.get(sessionCacheKey) == null) {
getPublicationTemplateManager().addDynamicPublicationTemplate(registerId, fileName);
sessionCache.put(sessionCacheKey, registerId);
}
