code: public static PersistenceUnitMetadata getPersistenceUnitMetadata(final KunderaMetadata kunderaMetadata,
              String persistenceUnit)
      {
          if (persistenceUnit != null && kunderaMetadata != null)
          {
              return kunderaMetadata.getApplicationMetadata().getPersistenceUnitMetadata(persistenceUnit);
          }
          return null;
      }
docs: Gets the persistence unit metadata.
  
  @param persistenceUnit
  the persistence unit
  @return the persistence unit metadata