Changing SAML response before sending back from Keycloak

How can I change SAML response that sent back from Keycloak?
Seems that I need to use custom mapper like in here:

Where can I find the more specific example or documentation?

Thanks in advance,
Leonid