@Override public AuthenticationBuilder mergeAttribute(final String key, final Object value) { val currentValue = this.attributes.get(key); if (currentValue == null) { return addAttribute(key, value); } val collection = CollectionUtils.toCollection(currentValue); collection.addAll(CollectionUtils.toCollection(value)); return addAttribute(key, collection); }