question: private static CacheTypeMetadata metaForClass ( Class cls ) { CacheTypeMetadata meta = new CacheTypeMetadata ( ) ; meta . setKeyType ( Integer . class ) ; meta . setValueType ( cls ) ; meta . setAscendingFields ( Collections . < String , Class < ? > > singletonMap ( "val" , Integer . class ) ) ; return meta ; }
target:  Create type metadata for class.