public static String stripPackagePrefix ( String className , Class < ? > expectedType ) { if ( className . startsWith ( expectedType . getPackage ( ) . getName ( ) ) ) { return className . substring ( expectedType . getPackage ( ) . getName ( ) . length ( ) + 1 ) ; } return className ; }
Gets the class name without its package name prefix .