asMap method implemented in domain classes