private static void deleteDirContents(File parent) {
        File[] children = parent.listFiles();
        if (children != null) {
            for (File child : children) {
                deleteDirContents(child);
                boolean deleted = child.delete();
                if (! deleted)
                    throw new RuntimeException("Could not delete file '" + child.getAbsolutePath() +
                                               "'. Please check file permissions!");
            }
        }
    }
NOTE: This method is no longer used by the Jdisc container framework, but kept for completeness.
jdisc_core/src/main/java/com/yahoo/jdisc/core/FelixFramework.java