See the Javadoc for the specification. This should verify that the `current` flag is one of the three allowed types. Could use a switch statement. Also, no need check if closed since the specification for `Statement.close()` says it should be idempotent -- just `close()`.