code: @Override
      public EntityManager getEntityManager
                      (JPAPuId puId,
                       J2EEName j2eeName, // d510184
                       String refName, // d510184
                       boolean isExtendedContextType,
                       boolean isUnsynchronized,
                       Map<?, ?> properties)
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "getEntityManager : " + puId + ", " + j2eeName);
  
          EntityManager em = null;
          JPAPUnitInfo puInfo = findPersistenceUnitInfo(puId);
          if (puInfo != null)
          {
              em = isExtendedContextType ?
                              getJPARuntime().createJPAExEntityManager(puId, puInfo, j2eeName, refName, properties, isUnsynchronized, this) :
                              getJPARuntime().createJPATxEntityManager(puId, puInfo, j2eeName, refName, properties, isUnsynchronized, this);
          }
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "getEntityManager : " + em);
          return em;
  
      }
docs: (non-Javadoc)
  
  @see com.ibm.ws.jpa.JPAComponent#getEntityManager