*/
static public void assertExpectedResponse(PduRequest request, PduResponse response) throws GenericNackException, UnexpectedPduResponseException {
if (request.getResponseClass().isInstance(response)) {
return;
} else if (response instanceof GenericNack) {
throw new GenericNackException((GenericNack)response);
} else {
throw new UnexpectedPduResponseException(response);
}
}