code: @SuppressWarnings("unchecked")
      public static <T> T getRequestAttribute(final HttpServletRequest request, final String key) {
          if (request != null) {
              return (T) request.getAttribute(key);
          }
          return null;
      }
docs: Returns a request attribute as the type of object stored.
  
  @param request request of the attribute
  @param key the attributes key
  @param <T> the type of the object expected
  @return the requested object
  @since 1.0.0