code: public static Resource create(@NotNull ResourceResolver resourceResolver, @NotNull ValueMap valueMap) {
      return create(resourceResolver, null, JcrConstants.NT_UNSTRUCTURED, valueMap);
    }
docs: Create synthetic resource.
  @param resourceResolver Resource resolver
  @param valueMap Properties
  @return Resource