defined? is triggering something really messed up in jruby causing both the if AND else clauses to execute, however if the check is run here, everything is fine
[Validate]