@Override
public Memento save(ManagedSlotMappingConfiguration configuration) {
assert configuration != null;
Memento memento = new Memento();
Slot[] slots = configuration.getSlots();
for (Slot slot : slots) {
if (configuration.isConfigured(slot)) {
ManagedVisualItemValueResolver resolver = configuration
.getCurrentResolver(slot);
Memento child = visualItemResolverFactoryPersistenceManagers
.get(resolver.getId()).save(resolver);
child.setFactoryId(resolver.getId());
memento.addChild(slot.getId(), child);
}
}
return memento;