final Context context = ZMQ.context(threads);
Socket sender;
if (PUBSUB.equals(socketType)) {
LogLog.debug("Setting socket type to PUB");
sender = context.socket(ZMQ.PUB);
}
else if (PUSHPULL.equals(socketType))
{
LogLog.debug("Setting socket type to PUSH");
sender = context.socket(ZMQ.PUSH);