Fix RPC method name conflict with JLS
When we are constructing the method name for use with the RPC
provider interface we need to pay attention to conflicts with
JLS reserved words.
If such a conflict occurs, append a single '$' to the name, so
that we have a valid method name.
JIRA: MDSAL-500
Change-Id: Ifb533e2daa71bc9d1780a5d8eb48da6ce3b2d209
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
6e6ebc43866204667658f8bbf7cfb6233caffdc7)