private static String pathToEnumFieldName(final Path relPath) {
        final StringBuilder sb = new StringBuilder();
        for (int i = 0; i < relPath.getNameCount(); i++) {
            if (sb.length() > 0) {
                sb.append("_");
            }
            sb.append(relPath.getName(i));
        }
        String name = sb.toString();
        name = name.substring(0, name.length() - 4)
                .replaceAll("([a-z])([A-Z])", "$1_$2")
                .toUpperCase(Locale.ROOT)
                .replaceAll("[^A-Z0-9]", "_")
                .replaceAll("_+", "_")
                .replaceAll("^_+", "")
                .replaceAll("_+$", "");

        return name;
    }
@return The CSS class name for the icon.
stroom-core-shared/src/test/java/stroom/svg/shared/GenerateSvgImages.java