code: @SuppressWarnings("unchecked")
      private Object parseEnumParameter(final Enum<?> e, final String serializedObject) {
          final Object res = Enum.valueOf(e.getClass(), serializedObject);
          return res;
      }
docs: Parse an Enum definition by calling Enum.valueOf.
  
  @param serializedObject the full enumerated value
  
  @return the class object