public void addServiceVersionToTokenResolverEntry(ServiceVersion serviceVersion, IdentityTokenResolver resolver) {
//JSON RPC can only have one IdentityTokenResolver as it is not a versioned service
//Different protocol versions can be accessed via the invoke-by-name model of the protocol
if (protocol == Protocol.JSON_RPC) {
IdentityTokenResolver mapResolverEntry = versionToIdentityTokenResolverMap.get(JSON_VERSION_AGNOSTIC_KEY);
if (mapResolverEntry == null) {
versionToIdentityTokenResolverMap.put(JSON_VERSION_AGNOSTIC_KEY, resolver);
} else {
if (!mapResolverEntry.equals(resolver)) {
logger.log(Level.WARNING, "You can only have one IdentityTokenResolver wired for JSON-RPC - ignoring [%s]",
resolver.getClass().getName());
}
}
} else {