{
if (!canAutoRecycle(doWindowCheck)) {
return;
}
// get Global lock and check if safeToRecycle
GlobalLockingService service = GlobalLocking.getService();
GlobalLock lock = null;
try {
lock = service.acquireLock(globalLockName);
if (lock == null) {
// do nothing. We will try to recycle later.
Log.shutdown.debug("Could not acquire global lock");
return;
}