Please review my code changes: https://github.com/apache/vxquery/pull/64
I attempted to track down an issue with creating to many files, but I got side tracked with all the sonar comments on the way. Please take a look at my changes and give me your feedback. Thanks Preston
