Throwable () { Throwable trace = new Throwable(); if (ApplicationManager.getApplication().isUnitTestMode()) { LOG.error("PSI invalidated outside transaction", trace); } else { LOG.info("PSI invalidated outside transaction", trace); } return trace; }