code: public Object getStateOrCreate(long txid, StateInitializer init) {
          if(_curr.containsKey(txid)) {
              return _curr.get(txid);
          } else {
              getState(txid, init);
              return null;
          }
      }
docs: Returns null if it was created, the value otherwise.