if (!clauseText.getText().equals("")) {
try {
if(clause != null) {
system.execute((new EditClause(clause.getId(), clauseText.getText(), clause.isActive(), clause.isCanBeRemoved())));
} else {
String id = (String) system.query(new GetClauseId());
Clause clause = new Clause(id, clauseText.getText(), true, true);
system.execute(new AddClause(clause));
}
close();
}catch (TransactionDateException e) {