@@ -0,0 +1,765 @@
+package pl.openrest.dto.mapper;%0A%0Aimport pl.openrest.dto.registry.DtoInformation;%0A%0Apublic class MapperDelegator implements CreateMapper%3CObject, Object%3E, UpdateMapper%3CObject, Object%3E %7B%0A%0A    private final MapperFactory mapperFactory;%0A%0A    public MapperDelegator(MapperFactory mapperFactory) %7B%0A        this.mapperFactory = mapperFactory;%0A    %7D%0A%0A    @Override%0A    @SuppressWarnings(%22unchecked%22)%0A    public void merge(Object from, Object entity, DtoInformation dtoInfo) %7B%0A        mapperFactory.getUpdateMapper(from.getClass()).merge(from, entity, dtoInfo);%0A    %7D%0A%0A    @Override%0A    @SuppressWarnings(%22unchecked%22)%0A    public Object create(Object from, DtoInformation dtoInfo) %7B%0A        return mapperFactory.getCreateMapper(from.getClass()).create(from, dtoInfo);%0A    %7D%0A%0A%7D%0A

Create mapper delegator that delegates mapping to mappers retrieved from mapper factory