basic generation of inner classes on POJOS
some fixes for references need testing