code: @Invalidate
      void shutdown() {
          if (repository != null) {
              repository.dispose();
          }
  
          if (emRegistration != null) {
              emRegistration.unregister();
          }
          if (entityManager != null) {
              entityManager.close();
          }
          if (emfRegistration != null) {
              emfRegistration.unregister();
          }
          if (entityManagerFactory != null) {
              entityManagerFactory.close();
          }
          if (transformer != null) {
              transformer.unregister(sourceBundle.bundle);
          }
      }
docs: Shutdown this persistence unit