public < T extends DajlabModelInterface > T get ( Class < T > clazz ) { T ret = null ; try { ret = ( T ) dajlab . get ( clazz . getName ( ) ) ; } catch ( ClassCastException e ) { e . printStackTrace ( ) ; } return ret ; }
Get a model from the map using the class .