final ElementCreator creator = new ElementCreator(elementTypeDao, elementDao, propertyTypeDao, idName, idVersion);
logger.debug("about to create element tree for {}", bean.toString());
final Element newElement = creator.create(bean,null);
logger.debug("created element tree: {}", bean.toString());
// eliminate empty nodes
newElement.crunch();
// do not change it, uses System.out.println
if( logger.isDebugEnabled()){
newElement.print(0, "new Element after crunch()");
}
Element element=null;