validProvider = true;
}
if (!validProvider)
{
// Not a valid provider
throw new NotProviderException(LOCALISER.msg("EMF.NotProviderForPersistenceUnit",
unitInfo.getPersistenceUnitName()));
}
// Create a PersistenceUnitMetaData
if (unitInfo.getTransactionType() == PersistenceUnitTransactionType.JTA)