@SuppressWarnings("unchecked")
public T set(T newValue) {
try {
return (T) memory.getBaseSnapshot().getGlobalMap().put(this.id, newValue);
} catch (NoTransactionException ex) {
throw new NoTransactionException("Cannot write to GlobalReference outside of a transaction", ex);
}
}