package com.capitalone.dashboard.model; public enum LibraryPolicyType { Security, License, Other; public static LibraryPolicyType fromString(String value) { for (LibraryPolicyType policyType : values()) { if (policyType.toString().equalsIgnoreCase(value)) { return policyType; } } return Other; } }