package org.ovirt.engine.core.common;

public enum EventNotificationMethod {
    SMTP("smtp"),
    SNMP("snmp");

    /**
     * External string representation (database, text configuration)
     */
    private String value;

    /**
     * Sets external string representation as lowercase name
     */
    private EventNotificationMethod(String value) {
        this.value = value;
    }

    /**
     * Return string representation (database, configuration
     */
    public String getAsString() {
        return value;
    }

    /**
     * Returns enum value based on external string representation
     */
    public static EventNotificationMethod valueOfString(String value) {
        return valueOf(value != null ? value.toUpperCase() : value);
    }
}

@@ -696,16 +696,8 @@
 urn 
-valueOf(
 valu
@@ -708,16 +708,24 @@
  null ? 
+valueOf(
 value.to
@@ -739,17 +739,16 @@
 se()
+)
  : 
-value)
+null
 ;%0A  

Fix FindBugs issue in EventNotificationMethod