Getting bean from mapper because the returned value from map is null when the object already exists