*/
protected void unbind(Session session) throws WrongSessionStateException,
TimeoutException, IOException, PDUException {
LOGGER.debug("Attempting to unbind the session");
UnbindResp response = session.unbind();
if (response != null) {
if (response.getCommandStatus() == Data.ESME_ROK) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("The session was successfully unbound");
}
} else {
LOGGER.warn("Unexpected response to unbind. Response is "
+ response.debugString());
}
} else {
LOGGER.debug("UnbindResponse was null when SMSCBindType was " +
SMSCBindType);
}