code: public JavaType constructJavaTypeFromCanonicalString(String canonicalString) {
      try {
        return TypeFactory.defaultInstance().constructFromCanonical(canonicalString);
      } catch (IllegalArgumentException e) {
        throw LOG.unableToConstructJavaType(canonicalString, e);
      }
    }
docs: Constructs a {@link JavaType} object based on the parameter, which
  has to follow Jackson's canonical type string format.
  
  @param canonicalString canonical string representation of the type
  @return the constructed java type
  @throws SpinJsonDataFormatException if no type can be constructed from the given parameter