PolicyGenerator improved - DeniedPermissionListener interface used to handle denied permissions.