We currently use a callback into org.jboss.as.jpa.processor.secondLevelCache.InfinispanCacheDeploymentListener.addCacheDependencies() which is passed the Infinispan 2lc dependencies, so that the ServiceBuilder.addDependency() may be done with the builder.  The callback happens in the try block, during the call to (JipiJapa) adaptor.addProviderDependencies(pu).

I didn't want to pass the ServiceBuilder to the addProviderDependencies, as that would make JipiJapa depend on AS8 (cycle).  When/if, we add other second level cache providers to WildFly, the same callback should also work.