public void storeCredentials() {
    CredentialAttributes attributes = getAttributes();
    PasswordSafe.getInstance().set(attributes, new Credentials(getUsername(), getPassword()));
  }
public void storeCredentials()