code: @SuppressWarnings("unchecked")
      public <T> T[] persist(T... pcs) {
          pm.currentTransaction().begin();
          pm.makePersistentAll(pcs);
          pm.currentTransaction().commit();
          pm.getFetchPlan().setDetachmentOptions(FetchPlan.DETACH_LOAD_FIELDS);
          pm.refreshAll(pcs);
          return pcs;
      }
docs: Persists the specified PersistenceCapable objects.
  @param pcs an array of PersistenceCapable objects
  @param <T> the type to return
  @return the persisted objects