code: @SuppressWarnings("unchecked")
      private static Enum parseEnum(final String value) {
          final int idx = value.lastIndexOf('.');
          try {
              final Class type = Class.forName(value.substring(0, idx));
              if (!type.isEnum()) {
                  throw new IllegalStateException("Type " + type.getName() + " is not enum");
              }
              return Enum.valueOf(type, value.substring(idx + 1));
          } catch (Exception ex) {
              throw new IllegalStateException("Failed to recognize enum value: " + value, ex);
          }
      }
docs: Parse enum from full definition: enumClass.enumValue.
  
  @param value full enum definition
  @return parsed enum