#14 make ApplicationRoleEntry serializable and add hashcode and equals.
adjust some debug logging.