private void routeAndCheckNull(Message message,
RoutingContext context,
Response resp,
Binding theBinding,
SimpleString groupId,
int tries) throws Exception {
if (theBinding != null) {
theBinding.route(message, context);
} else {
if (resp != null) {
groupingHandler.forceRemove(resp.getGroupId(), resp.getClusterName());
}
if (tries < MAX_GROUP_RETRY) {
routeUsingStrictOrdering(message, context, groupingHandler, groupId, tries + 1);
} else {
ActiveMQServerLogger.LOGGER.impossibleToRouteGrouped();
route(message, context, false);
}
}
}