/** * Closes the specified index. * * @param type index to be closed */ private synchronized void close(final IndexType type) { // close index and invalidate reference final Index index = index(type); if (index != null) { index.close(); set(type, null); } }