code: protected String buildBridgeURL(GetRestoreTaskParameters params) {
          if (params.getRestoreId() != null) {
              return MessageFormat.format("{0}/restore/{1}",
                                          buildBridgeBaseURL(),
                                          params.getRestoreId());
  
          } else {
              return MessageFormat.format("{0}/restore/by-snapshot/{1}",
                                          buildBridgeBaseURL(),
                                          params.getSnapshotId());
          }
      }
docs: /*
  Create URL to call bridge app