public static boolean validSchemaFilename(String fn) {
        if (! fn.endsWith(SD_NAME_SUFFIX)) {
            return false;
        }
        int lastSlash = fn.lastIndexOf('/');
        if (lastSlash >= 0) {
            fn = fn.substring(lastSlash+1);
        }
        if (fn.startsWith(".")) {
            return false;
        }
        return true;
    }
Common code for all implementations of ApplicationPackage

@author arnej
config-application-package/src/main/java/com/yahoo/config/model/application/AbstractApplicationPackage.java