initialiseArbOptions(arbOptions) {
    let registryUrl = 'registry.npmjs.org';
    let authorizationName = 'anonymous';
    const providedRegistry = this.registry.url;

    if (providedRegistry) {
      arbOptions.registry = providedRegistry;
      registryUrl = providedRegistry;
    }

    const domainName = registryUrl.replace(/^https?:\/\//, '');
    //doing basic if/else so basically only one auth type is used and token as more secure is primary
    if (this.registry.token) {
      authorizationName = `//${domainName}:_authToken`;
      arbOptions[authorizationName] = this.registry.token;
    } else if (this.registry.auth) {
      authorizationName = `//${domainName}:_auth`;
      arbOptions[authorizationName] = this.registry.auth;
    }

    //not sharing in logs neither token nor auth for security reasons
    log.debug(`Using npm registry ${registryUrl} and authorization type ${authorizationName} to handle template installation.`);
  }
@private
@param {Object} arbOptions ArbOptions to intialise the Registry details.