final Assembler assembler = DTOAssembler.newAssembler(dto.getClass(), entity.getClass());
final Map<String, Object> adapters = new HashMap<String, Object>();
adapters.put("CatalogCodeMatcher", new CatalogCodeMatcher());
assembler.assembleDto(dto, entity, adapters, new BeanFactory() {
public Class getClazz(final String entityBeanKey) {
if ("DtoCatalogCode".equals(entityBeanKey)) {
return DtoCatalogCodeClass.class;
} else if ("DtoCode".equals(entityBeanKey)) {
return DtoCodeClass.class;