if (!consistentWithExpectations)
{
String messageString = message.toString();
log.debug(messageString);
throw new InvalidConsumerDataException(messageString);
}
}
// check that this is not a duplicate registration if the status is not pending
Consumer consumer = manager.getConsumerByIdentity(consumerIdentity);