Changed role self identification to use Role.getName() method.