public static String packageName(String fullClassName) {
        int index = fullClassName.lastIndexOf('.');
        if (index == -1) {
            return "";
        } else {
            return fullClassName.substring(0, index);
        }
    }
Utility methods related to packages.

@author Tony Vaagenes
@author ollivir
bundle-plugin/src/main/java/com/yahoo/container/plugin/classanalysis/Packages.java