protected void prepareMainDefinitionBeforeSave(AdlDefinitionCustomImpl root) {
   if (root == null) return;
   ((AdlDefinitionHelper) root.getHelper()).cleanMainDefinition();
 }
 protected void restoreMainDefinitionAfterSave(AdlDefinitionCustomImpl root) {
   if (root != null) ((AdlDefinitionHelper) root.getHelper()).restoreMainDefinition();
 }