sessionSettings.setString(sessionID, SessionSettings.SENDERCOMPID, sessionID.getSenderCompID());
sessionSettings.setString(sessionID, SessionSettings.TARGETCOMPID, sessionID.getTargetCompID());
}
public static Email createEmailMessage(String subject) {
Email email = new Email(new EmailThreadID("ID"), new EmailType(EmailType.NEW), new Subject(subject));
Email.LinesOfText text = new Email.LinesOfText();
text.set(new Text("Content"));
email.addGroup(text);
return email;
}