Not a good practice to close a resource being passed to a method (except a util method for performing the close, e.g. in `Closeables.closeQuietly()`). Resource acquisition and release should be in the same block (in this case, caller should be closing the statement).