private void loadPassword() {
    if (StringUtil.isEmpty(getPassword())) {
      CredentialAttributes attributes = getAttributes();
      Credentials credentials = PasswordSafe.getInstance().get(attributes);
      if (credentials != null) {
        setPassword(credentials.getPasswordAsString());
      }
    }
    else {
      storeCredentials();
    }
  }
private void loadPassword()