*/
public SmppConsumer(SmppEndpoint endpoint, SmppConfiguration config, Processor processor) {
super(endpoint, processor);
this.configuration = config;
this.sessionStateListener = new SessionStateListener() {
public void onStateChange(SessionState newState, SessionState oldState, Object source) {
if (newState.equals(SessionState.CLOSED)) {
LOG.warn("Loost connection to: " + getEndpoint().getConnectionString()
+ " - trying to reconnect...");
closeSession(session);