int () { int previousPriority = Thread.currentThread().getPriority(); try { Thread.currentThread().setPriority(LOW_PRIORITY); } catch (SecurityException e) { LOG.debug("Could not set indexing thread priority", e); } return previousPriority; }