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 ; }
Strips class name prefixes from the start of the given string .