Refactor xml return repeated hasMap key;