code: public <T> T getSessionObject(Class<T> type, String name) {
  
          T value = (T) session.get(name);
          if (logger.isDebugEnabled()) {
              logger.debug("Recovering object [" + name + "] from  session with value [" + value + "]");
          }
          return value;
      }
docs: Recovered a object from the session.
  
  @param type the object type.
  @param name the object name.
  @param <T>  the object type.
  @return the object.