@SuppressWarnings("unchecked")
  public RemoteCredentialsHandler getTypeHandler() {
    var credentialsAndType = getCredentialsAndType();
    return credentialsAndType.second.getHandler(credentialsAndType.first);
  }
@SuppressWarnings("unchecked")
  public RemoteCredentialsHandler getTypeHandler()