code: public static List<PersistenceUnitMetadata> findPersistenceUnits(URL url, final String[] persistenceUnits)
              throws Exception
      {
          return findPersistenceUnits(url, persistenceUnits, PersistenceUnitTransactionType.JTA);
      }
docs: Find persistence units.
  
  @param url
  the url
  @return the list
  @throws Exception
  the exception