public static StartTLSEnum toValue(String in) {
            for (StartTLSEnum value : values()) {
                if (value.name().equalsIgnoreCase(in)) {
                    return value;
                }
            }
            throw new IllegalArgumentException(
                 MessageFormat.format("Argument {0} not a recognised value from {1}", in, values()));
        }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/notifications/email/SmtpEmailConfiguration.java