public final State captureState() {final State state = this.getCurrentState();return (state == null) ? null : state.clone();}
public virtual State CaptureState(){State state = this.GetCurrentState();return (state == null) ? null : (State)state.Clone();}