}
public void setAttribute(final String name, final String value) {
final String previous = safeElementAttributes().put(name, value);
if (!Objects.equals(previous, value)) {
final Update update = new Update(ID);
update.put(PROPERTY.PUT_ATTRIBUTE_KEY, name);
update.put(PROPERTY.ATTRIBUTE_VALUE, value);
Txn.get().getTxnContext().save(update);
}
}