convert to jruby and awestruct 0.5.0