basePresenter.getAddEditPopOver().hide();
}
private void saveRecord() {
BluePrint bluePrint = new BluePrint();
RestClient restClient = basePresenter.getRestClient();
bluePrint.setUrl(urlTextField.getText());
bluePrint.setUsername(usernameTextField.getText());
bluePrint.setEncryptedPassword(AES.encrypt(passwordTextField.getText(), restClient.getMasterPassword()));
basePresenter.getAllPasswords().add(restClient.createPassword(bluePrint));
basePresenter.getAddEditPopOver().hide();
}