// so not getting this lock within 60 seconds probably isn't detrimental.
// But if there is a deadlock, blocking forever here would be detrimental,
// so we do not do it. We'll just log a warning and let the thread keep going.
Lock writeLock = rwLock.writeLock();
try {
if (!writeLock.tryLock(60L, TimeUnit.SECONDS)) {
String msg = "There may be a deadlock in the plugin container.";
//noinspection ThrowableInstanceNeverThrown
log.warn(msg, new Throwable(msg));
writeLock = null;
}