code: public static GenderEnumeration findByValue(final String value) {
          if (value == null) {
              return null;
          }
  
          final String gender = value.toUpperCase();
  
          if (gender.charAt(0) == 'M') {
              return GenderEnumeration.MALE;
          } else if (gender.charAt(0) == 'F') {
              return GenderEnumeration.FEMALE;
          } else {
              return null;
          }
      }
docs: Returns the proper instance based on the string value