@SuppressWarnings("rawtypes")
  public CredentialsType getRemoteConnectionType() {
    return getCredentialsAndType().second;
  }
@SuppressWarnings("rawtypes")
  public CredentialsType getRemoteConnectionType()