https://bugster.forgerock.org/jira/browse/OPENAM-4831 is fixed now.
Updating documentation and code to reflect the change.