code: public <T> Set<T> detach(Set<T> pcs) {
          pm.getFetchPlan().setDetachmentOptions(FetchPlan.DETACH_LOAD_FIELDS);
          return new LinkedHashSet<>(pm.detachCopyAll(pcs));
      }
docs: Refreshes and detaches an objects.
  @param pcs the instances to detach
  @param <T> the type to return
  @return the detached instances
  @since 1.3.0