if(asset instanceof Contentlet) {
Logger.debug(PublishFactory.class, "*****I'm an HTML Page -- Publishing my Contentlet Child=" + ((Contentlet)asset).getInode());
try {
Contentlet c = (Contentlet)asset;
if(!APILocator.getWorkflowAPI().findSchemeForStruct(c.getStructure()).isMandatory()){
conAPI.publish((Contentlet)asset, user, false);
}
} catch (DotSecurityException e) {
//User has no permission to publish the content in the page so we just skip it
Logger.debug(PublishFactory.class, "publish html page: User has no permission to publish the content inode = " + ((Contentlet)asset).getInode() + " in the page, skipping it.");
}