change return type of Identity.getUser() from User to Agent