Take two - fixed for jruby. 

Late, but it bring closure to my mind.