code: public static <T> T readAsObjectOf(Class<T> clazz, String value) {
          final ObjectMapper mapper = new ObjectMapper();
          try {
              return mapper.readValue(value, clazz);
          } catch (IOException e) {
              LOGGER.error(e.getMessage(), e.fillInStackTrace());
          }
          return null;
      }
docs: Reads in a String value and returns the object for which it represents.
  @param clazz The expected class of the value
  @param value the value to parse
  @param <T> The expected type to return
  @return the mapped object