if (context instanceof BootOperationContext) {
/* set Hibernate persistence provider as the default provider */
javax.persistence.spi.PersistenceProviderResolverHolder.setPersistenceProviderResolver(
new PersistenceProviderResolverImpl());
final BootOperationContext updateContext = (BootOperationContext) context;
updateContext.addDeploymentProcessor(Phase.DEPENDENCIES, Phase.DEPENDENCIES_JPA, new JPADependencyProcessor());
updateContext.addDeploymentProcessor(Phase.PARSE, Phase.PARSE_PERSISTENCE_UNIT, new PersistenceUnitParseProcessor());
// TODO move POST_PERSISTENCE_ANNOTATION back to PARSE as soon as Stuart moves his POST entries to PARSE