code: public static String stripClassNames(String str)
      {
          String ret = str;
          if(ret != null)
          {
              while(ret.startsWith("java.security.PrivilegedActionException:")
                  || ret.startsWith("com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl:")
                  || ret.startsWith("javax.jms.JMSSecurityException:"))
              {
                  ret = ret.substring(ret.indexOf(":")+1).trim();
              }
          }
          return ret;
      }
docs: Strips class name prefixes from the start of the given string.
  @param str The string to be converted
  @return The string with class name prefixes removed