code: @Override
      public void close()
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "em.close();\n" + toString());
  
          // JPA 5.9.1 Container Responsibilities
          // The container must throw the IllegalStateException if the application calls
          //  EntityManager.close on a container-managed entity manager.
          throw new IllegalStateException("Can not close EntityManager session in container-managed entity manager (JPA 5.9.1).");
      }
docs: (non-Javadoc)
  
  @see javax.persistence.EntityManager#close()