public static CacheType getCacheType(@NonNull final String style) {
        switch (style) {
            case "Classic":
                return CacheType.TRADITIONAL;
            case "Virtual":
                return CacheType.VIRTUAL;
            case "Puzzle":
                return CacheType.MYSTERY;
            case "Offset":
                return CacheType.MULTI;
            case "Event":
                return CacheType.EVENT;
        }
        return CacheType.UNKNOWN;
    }
Adapter for cache types used on TerraCaching
main/src/main/java/cgeo/geocaching/connector/tc/TerraCachingType.java