code: public void sendError(int sc) throws IOException
      {
          String message;
          RequestProcessor ref = getCurrentServletReference();
          if (ref != null)
          {
              sendError(sc, MessageFormat.format(nls.getString("[{0}].reported.an.error", "[{0}] reported an error"), new Object[] { ref.getName()}));
          }
          else
          {
              sendError(
                        sc,
                        MessageFormat.format(nls.getString("[{0}].reported.an.error", "[{0}] reported an error"), new Object[] { getWebApp().getConfiguration().getDisplayName()}));
          }
      }
docs: /* (non-Javadoc)
  @see com.ibm.ws.webcontainer.webapp.IWebAppDispatcherContext#sendError(int)