public static String getIdGeneratorType(Class<? extends IdGenerator> clazz) {
        for (String key : idGeneratorTypes.keySet()) {
            if (idGeneratorTypes.get(key) == clazz) {
                return key;
            }
        }
        return null;
    }