code: public void setErrorReturn(PrintWriter out, RemoteException ex)
          throws RemoteException
      {
          out.println(Utility.startTag(XMLTags.STATUS_TEXT));
          String strMessage = ex.getLocalizedMessage();
          if (Utility.isNumeric(strMessage))
          {
              try {
                  int iErrorCode = Integer.parseInt(strMessage);
                  out.println(Utility.startTag(XMLTags.ERROR_CODE) + strMessage + Utility.endTag(XMLTags.ERROR_CODE));
                  if (this.getTask() != null)
                      if (this.getTask().getApplication() != null)
                          strMessage = this.getTask().getApplication().getSecurityErrorText(iErrorCode);
              } catch (NumberFormatException ex2) {
                  // Ignore
              }
          }
          out.println(Utility.startTag(XMLTags.TEXT) + strMessage + Utility.endTag(XMLTags.TEXT));
          out.println(Utility.startTag(XMLTags.ERROR) + "error" + Utility.endTag(XMLTags.ERROR));
          out.println(Utility.endTag(XMLTags.STATUS_TEXT));
          return;
      }
docs: Sent/send this return string.
  @param out The return output stream.
  @param strReturn The string to return.