title: quickfixJ Getting Session settings from the session object
body: <p>I would like to customize the sent Login message in the toAdmin method by adding the Username and Password values from the current session settings. Something like that:</p>
  
  <pre><code>@Override
  public void toAdmin(Message message, SessionID sessionId) {
      Header header = message.getHeader();
      if (!header.isSetField(MsgType.FIELD) || !header.getString(MsgType.FIELD).equals(MsgType.LOGON))
      {
          // not a logon message: do not modify it
          return;
      }
  
      Session session = Session.lookupSession(sessionId);           
  
      message.setField(new Username(seesion.getSettingValue("Username")));
      message.setField(new Password(seesion.getSettingValue("Password")));
  }
  </code></pre>
  
  <p>The <code>getSettingValue</code> method doesn't exist. Is there any way to do this in quickfixJ? BTW this is possible in quickfixn.</p>