openState.addDisposeListener(s -> state.tryDispose());
}
_clientStates.put(state.stateid(), state);
return state;
}
<BUG>public NFS4State createState(StateOwner stateOwner) throws ChimeraNFSException {
if (_clientStates.size() >= MAX_OPEN_STATES) {
throw new ResourceException("Too many states.");
}
NFS4State state = new NFS4State(stateOwner, generateNewState());
_clientStates.put(state.stateid(), state);
return state;</BUG>
}

openState.addDisposeListener(s -> state.tryDispose());
}
_clientStates.put(state.stateid(), state);
return state;
}
public NFS4State createState(StateOwner stateOwner) throws ChimeraNFSException {
return createState(stateOwner, null);
}
