Flex imitation java map class