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