private static String getPackage ( final String fullyQualifiedClassName ) { int dotIndex = fullyQualifiedClassName . lastIndexOf ( ' ' ) ; if ( dotIndex == - 1 ) { return null ; } else { return fullyQualifiedClassName . substring ( 0 , dotIndex ) ; } }
Gets the package name from a fully qualified class name .