protected static <E extends Enum<E>> void checkEnumValue(final Class<E> enumClass, final String value, final Action1<E> executeIfFound) {
        final E enumValue = TextUtils.getEnumIgnoreCaseAndSpecialChars(enumClass, value, null);
        if (enumValue != null) {
            executeIfFound.call(enumValue);
        }
    }
Helper method to read enum config values
main/src/main/java/cgeo/geocaching/filters/core/BaseGeocacheFilter.java