Maybe we could push this code into the org.jboss.as.clustering.infinispan.subsystem.EmbeddedCacheManagerService package but I'm not sure what we could use instead of ServiceContainerHelper (we are handling both EE container managed JPA and Native Hibernate use of Infinispan second level caches).