public static <T> Optional<T> resolveWithValueOf(Class<T> type, String value) {
        return valueOfMethods.computeIfAbsent(type, ignore -> {
            try {
                return Optional.of(type.getDeclaredMethod("valueOf", String.class));
            } catch (NoSuchMethodException e) {
                return Optional.empty();
            } catch (Exception e) {
                LOG.warn("Unable to determine if type " + type + " has a valueOf() static method", e);
                return Optional.empty();
            }
        }).map(method -> {
            try {
                return (T)method.invoke(null, value);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
    }
Returns the internal property to the desiredn type
ribbon-core/src/main/java/com/netflix/client/config/PropertyUtils.java