diff --git a/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/entities/CachedRealm.java b/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/entities/CachedRealm.java index 67bd1d130f..28108d2723 100755 --- a/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/entities/CachedRealm.java +++ b/model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/entities/CachedRealm.java @@ -726,11 +726,11 @@ public class CachedRealm extends AbstractExtendableRevisioned { } public MultivaluedMap getComponentsByParent() { - return componentsByParent; + return new MultivaluedHashMap<>(componentsByParent); } public MultivaluedMap getComponentsByParentAndType() { - return componentsByParentAndType; + return new MultivaluedHashMap<>(componentsByParentAndType); } public Map getComponents() {