Hi,
I found a bug when trying to create a screen policy in Resource Roles I get the following Error:
RuntimeException: Duplicate key for values MyScreen.edit and MyScreen.browse. This happens when both screen have the same caption (but distinct id’s).
The error is thrown by getScreenOptionsMap function from ResourcePolicyEditorUtils class, because keymapper and valuemapper parameters of Collectors.toMap are reversed.