Buggy code:
public class InfinispanBackingCacheEntryStoreSource < K extends Serializable , V extends Cacheable < K > , G extends Serializable > extends AbstractBackingCacheEntryStoreSource < K , V , G > implements ClusteredBackingCacheEntryStoreSource < K , V , G > { public static final short SCOPE_ID = 223 ; private String cacheContainerName = DEFAULT_CACHE_CONTAINER ; private String beanCacheName = DEFAULT_BEAN_CACHE ; private String clientMappingsCacheName = DEFAULT_CLIENT_MAPPING_CACHE ; private int maxSize = ClusteredBackingCacheEntryStoreConfig . DEFAULT_MAX_SIZE ; private boolean passivateEventsOnReplicate = DEFAULT_PASSIVATE_EVENTS_ON_REPLICATE ; private final MarshallerFactory factory = Marshalling . getMarshallerFactory ( "river" , MarshallerFactory . class . getClassLoader ( ) ) ; private CacheInvoker invoker = new RetryingCacheInvoker ( 0 , 0 ) ; @ SuppressWarnings ( "rawtypes" ) private final InjectedValue < Cache > groupCache = new InjectedValue < Cache > ( ) ; private final InjectedValue < SharedLocalYieldingClusterLockManager > lockManager = new InjectedValue < SharedLocalYieldingClusterLockManager > ( ) ; @ SuppressWarnings ( "rawtypes" ) private final InjectedValue < Registry > registry = new InjectedValue < Registry > ( ) ; @ Override public void addDependencies ( ServiceTarget target , ServiceBuilder < ? > builder ) { } @ Override public < E extends SerializationGroup < K , V , G > > BackingCacheEntryStore < G , Cacheable < G > , E > createGroupIntegratedObjectStore ( PassivationManager < G , E > passivationManager , StatefulTimeoutInfo timeout ) { } @ Override public < E extends SerializationGroupMember < K , V , G > > BackingCacheEntryStore < K , V , E > createIntegratedObjectStore ( final String beanName , PassivationManager < K , E > passivationManager , StatefulTimeoutInfo timeout ) { Cache < ? , ? > groupCache = this . groupCache . getValue ( ) ; Configuration groupCacheConfiguration = groupCache . getCacheConfiguration ( ) ; EmbeddedCacheManager container = groupCache . getCacheManager ( ) ; <START_BUG> ConfigurationBuilder builder = new ConfigurationBuilder ( ) . read ( groupCacheConfiguration ) . name ( beanName ) ; <END_BUG> if ( ( this . maxSize ) > 0 ) { builder . eviction ( ) . strategy ( LRU ) . maxEntries ( this . maxSize ) ; } groupCache . getCacheManager ( ) . defineConfiguration ( beanName , builder . build ( ) ) ; Cache < MarshalledValue < K , MarshallingContext > , MarshalledValue < E , MarshallingContext > > cache = container . < MarshalledValue < K , MarshallingContext > , MarshalledValue < E , MarshallingContext > > getCache ( beanName ) . getAdvancedCache ( ) . with ( this . getClass ( ) . getClassLoader ( ) ) ; MarshallingContext context = new MarshallingContext ( this . factory , passivationManager . getMarshallingConfiguration ( ) ) ; MarshalledValueFactory < MarshallingContext > keyFactory = new org . jboss . as . clustering . HashableMarshalledValueFactory ( context ) ; MarshalledValueFactory < MarshallingContext > valueFactory = new org . jboss . as . clustering . SimpleMarshalledValueFactory ( context ) ; LockKeyFactory < K , MarshallingContext > lockKeyFactory = new LockKeyFactory < K , MarshallingContext > ( ) { @ Override public Serializable createLockKey ( MarshalledValue < K , MarshallingContext > key ) { return new AbstractMap . SimpleImmutableEntry < MarshalledValue < K , MarshallingContext > , String > ( key , beanName ) ; } } ; @ SuppressWarnings ( "unchecked" ) Registry < String , ? > registry = this . registry . getValue ( ) ; return new InfinispanBackingCacheEntryStore < K , V , E , MarshallingContext > ( cache , this . invoker , ( this . passivateEventsOnReplicate ? passivationManager : null ) , timeout , this , true , keyFactory , valueFactory , context , this . lockManager . getValue ( ) , lockKeyFactory , registry ) ; } @ Override public String getCacheContainer ( ) { } @ Override public void setCacheContainer ( String cacheContainerName ) { } @ Override public String getClientMappingCache ( ) { } @ Override public void setClientMappingCache ( String cacheName ) { } @ Override public String getBeanCache ( ) { } @ Override public void setBeanCache ( String cacheName ) { } @ Override public boolean isPassivateEventsOnReplicate ( ) { } @ Override public void setPassivateEventsOnReplicate ( boolean passivateEventsOnReplicate ) { } @ Override public int getMaxSize ( ) { } @ Override public void setMaxSize ( int maxSize ) { } private class RegistryEntryProviderValue implements RegistryEntryProvider < String , Object > { @ SuppressWarnings ( "rawtypes" ) private final Value < Registry . RegistryEntryProvider > provider ; @ SuppressWarnings ( "rawtypes" ) RegistryEntryProviderValue ( Value < Registry . RegistryEntryProvider > provider ) { } @ Override public String getKey ( ) { } @ Override public Object getValue ( ) { } } }

Fix:
ConfigurationBuilder builder = new ConfigurationBuilder ( ) . read ( groupCacheConfiguration ) ;