Added logic for to replace Map autowired by spring, by new Map with custom key.