logger.info("createStructure with siteNode:" + siteNode);
Integer originalSiteNodeId = siteNode.getValueObject().getSiteNodeId();
logger.info("originalSiteNodeId:" + originalSiteNodeId);
SiteNodeTypeDefinition originalSiteNodeTypeDefinition = siteNode.getSiteNodeTypeDefinition();
logger.info("originalSiteNodeTypeDefinition:" +originalSiteNodeTypeDefinition);
if(originalSiteNodeTypeDefinition == null)
{
Integer siteNodeTypeDefinitionId = siteNode.getValueObject().getSiteNodeTypeDefinitionId();
logger.info("siteNodeTypeDefinitionId: " + siteNodeTypeDefinitionId);
originalSiteNodeTypeDefinition = siteNodeTypeDefinitions.get(siteNodeTypeDefinitionId);
logger.info("siteNodeTypeDefinitions: " + siteNodeTypeDefinitions);
logger.info("originalSiteNodeTypeDefinition: " + originalSiteNodeTypeDefinition);
}
SiteNodeTypeDefinition siteNodeTypeDefinition = null;
if(originalSiteNodeTypeDefinition != null)
{
logger.info("originalSiteNodeTypeDefinition:" + originalSiteNodeTypeDefinition);
siteNodeTypeDefinition = SiteNodeTypeDefinitionController.getController().getSiteNodeTypeDefinitionWithName(originalSiteNodeTypeDefinition.getName(), db, false);
logger.info("siteNodeTypeDefinition:" + siteNodeTypeDefinition);
if(siteNodeTypeDefinition == null)
{
db.create(originalSiteNodeTypeDefinition);
siteNodeTypeDefinition = originalSiteNodeTypeDefinition;
logger.info("originalSiteNodeTypeDefinition ID:" + originalSiteNodeTypeDefinition.getId());
}
else
logger.info("siteNodeTypeDefinition ID:" + siteNodeTypeDefinition.getId());
siteNode.setSiteNodeTypeDefinition((SiteNodeTypeDefinitionImpl)siteNodeTypeDefinition);
siteNode.getValueObject().setSiteNodeTypeDefinitionId(siteNodeTypeDefinition.getId());
}
String mappedMetaInfoContentId = "-1";
if(siteNode.getMetaInfoContentId() != null)