Why don't you rename JavaMap to JMap and then u can squeeze this in one line :)