public <T>  T get(String name, Class<T> type){
        Object o = _getObject(name);
        return o == null ? null : type.cast(o);
    }
public < T > T get ( String name , Class < T > type ) { Object o = _getObject ( name ) ; return o == null ? null : type . cast ( o ) ; }
Retrieves object by name. Convenience generic method.

@param name name of object
@param type type requested.
@return object by name