if (resp.getMessageId().equals(messageId)) {
return new QuerySmResult(resp.getFinalDate(), resp
.getMessageState(), resp.getErrorCode());
} else {
// message id requested not same as the returned
throw new InvalidResponseException(
"Requested message_id doesn't match with the result");
}
}