DtoRegistry(List<DtoSchema<Object>> dtos) { for (DtoSchema<Object> dto in dtos) { _byType[dto.type] = dto; _byName[dto.name] = dto; } }