code: public static void removeController(ServletRequest req) {
  
          CmsFlexController controller = (CmsFlexController)req.getAttribute(ATTRIBUTE_NAME);
          if (controller != null) {
              controller.clear();
          }
      }
docs: Removes the controller attribute from a request.<p>
  
  @param req the request to remove the controller from