code: void close() {
          synchronized (ivPuList) {
              for (JPAPUnitInfo puInfo : ivPuList.values()) {
                  puInfo.close();
              }
              ivPuList.clear();
          }
      }
docs: Close all the active EntityManagers declared in this persistence.xml.