code: public static String generateValidXLinkUrlForLocalSwitching(XLinkUrlBlueprint template,
              ModelDescription modelInformation, 
              String contextId, 
              String viewIdValue,
              String objectAsJsonString) {
          String xLink = generateValidXLinkUrl(template, modelInformation, contextId, objectAsJsonString);
          xLink += "&" 
                  + template.getConnectorId() + "&" 
                  + template.getKeyNames().getViewIdKeyName() + "=" + urlEncodeParameter(viewIdValue);
          return xLink;
      }
docs: For demonstration ONLY method.
  <br/><br/>
  Demonstrates how a valid XLink-Url is generated out of an XLinkTemplate,
  a ModelDescription and an Identifying Object, serialized with JSON.
  The connectorId and viewId parameters are added, to mark the url for Local Switching