private SMPPSession createNewSession() {
final SMPPSession newSession;
if (!ssl) {
newSession = new SMPPSession();
} else {
newSession = new SMPPSession(new SynchronizedPDUSender(new DefaultPDUSender(
new DefaultComposer())), new DefaultPDUReader(), sslConnectionFactory);
}
newSession.setTransactionTimer(transactionTimeout);
return newSession;
}