code: @Deprecated
      public static String getRequestContextPath(ExternalContext ec)
      {
          if (!isPortlet(ec))
          {
              return ec.getRequestContextPath();
          }
          else
          {
              return null;
          }
      }
docs: Returns the contextPath of the ServletRequest or <code>null</code> for portlet requests
  
  @param ec the current external context
  @return a String containing the request context path
  @see ExternalContext#getRequestContextPath()
  
  @deprecated use ExternalContext.getRequestContextPath() as of JSF 1.2.  This method
  does not appropriately handle portlet environments, but the functionality
  is maintained to prevent needing to change the contract.