add support for session_id and passwd option on jruby