public static String getPackageName ( final String className ) { int dotPos = className . lastIndexOf ( ' ' ) ; if ( dotPos < 0 ) { return "" ; } return className . substring ( 0 , dotPos ) ; }
parses the package name from a fully qualified class name