code: public static XLinkUrlBlueprint prepareXLinkTemplate(String baseUrl,
              String connectorId,
              Map<ModelDescription, XLinkConnectorView[]> modelsToViews, 
              int expirationDays, 
              XLinkConnector[] registeredTools) {
          baseUrl +=
              "?" + XLinkConstants.XLINK_EXPIRATIONDATE_KEY + "=" + urlEncodeParameter(getExpirationDate(expirationDays));
          String connectorIdParam = XLinkConstants.XLINK_CONNECTORID_KEY + "=" + urlEncodeParameter(connectorId);
          Map<String, ModelDescription> viewToModels = assigneModelsToViews(modelsToViews);
          return 
              new XLinkUrlBlueprint(baseUrl, 
                  viewToModels, 
                  registeredTools,        
                  connectorIdParam, 
              new XLinkUrlKeyNames()
          );
      }
docs: Prepares the XLinkTemplate before it is transmitted to the remote tool.
  <br/><br/>
  The baseUrl is prepared and the KeyNames are added. <br/>
  The models are assigned to the views (yet in an naive order). <br/>
  The ConnectorId/value combination and the ViewId-Key are also added to the Template to enable
  Local Switching.