added CommonTypeAdapterFactory & StringEnumUtils. some code cleanup