public static String getName(Object x){
         
         if(x==null) return "null Object";
         if(x.getClass().toString().equals("class generated.HierarchyType")){
             return "hierarchy";
         }
         if(x.getClass().toString().equals("class generated.HierarchyBlocksType")){
             return "hierarchyblocks";
         }
         if(x.getClass().toString().equals("class generated.HierarchyDocsType")){
             return "hierarchydocs";
         }
         if(x.getClass().toString().equals("class generated.ImageBlockType")){
             return "imageblock";
         }
         if(x.getClass().toString().equals("class generated.TextBlockType")){
             return "textblock";
         }
         if(x.getClass().toString().equals("class generated.PolygonType")){
             return "polygon";
         }
         if(x.getClass().toString().equals("class generated.PointType")){
             return "point";
         }
         if(x.getClass().toString().equals("class generated.ImposedType")){
             return "imposed";
         }
         if(x.getClass().toString().equals("class generated.DocumentType")){
             return "document";
         }
         if(x.getClass().toString().equals("class generated.DirType")){
             return "dir";
         }
         if(x.getClass().toString().equals("class generated.ComposedBlockType")){
             return "composedblock";
         }
         if(x.getClass().toString().equals("class generated.TextBlockType$TextLine")){
             return "textline";
         }
         
         return "eroare: "+x.getClass().toString();
     }