}
catch (NamingException e)
{
throw new RuntimeException(e);
}
persistenceUnitResolver = new EjbModulePersistenceUnitResolver(persistenceUnitDeployments, deploymentScope,
ejbContainers);
MessageDestinationsMetaData destinations = null;
if (metaData != null && metaData.getAssemblyDescriptor() != null)
destinations = metaData.getAssemblyDescriptor().getMessageDestinations();
messageDestinationResolver = new MessageDestinationResolver(deploymentScope, destinations);