if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
stackLogger.logDebug("trying to acquiring semaphore for message " + message);
}
callIdSemaphore.acquire();
} catch (InterruptedException e) {
stackLogger.logError("Semaphore acquisition for message " + message + " interrupted", e);
}
if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
stackLogger.logDebug("semaphore acquired for message " + message);
}
}