Is there a solution without getMetamodel? getMetamodel does not exist in version 5.1.x. I need a method to get this information compatible with both version 5.1 and 5.2