public QuickfixjEventJsonTransformer() throws ConfigError {
renderer = new QuickfixjMessageJsonTransformer();
}
public String transform(Exchange exchange) {
SessionID sessionID = exchange.getIn().getHeader(QuickfixjEndpoint.SESSION_ID_KEY, SessionID.class);
Session session = Session.lookupSession(sessionID);
DataDictionary dataDictionary = session.getDataDictionary();
if (dataDictionary == null) {
throw new IllegalStateException("No Data Dictionary. Exchange must reference an existing session");