Connecting to a spreader
Once the connection parameters have been defined, you can connect and pass the defined connection parameters.
com.apama.md.adapter.SpreaderSession SpreaderInst;
SpreaderInst.create( mainCtx,"Test",uSession, uSession.getConfig(), params,
onSpreaderSuccess, onSpreaderFailure);