Boolean (int inputId, short fileTypeId) { myLock.writeLock().lock(); try { if (myInMemoryMode.get()) { throw new IllegalStateException("file type index should not be updated for unsaved changes"); } else { myDataController.setAssociation(inputId, fileTypeId); } } catch (StorageException e) { LOG.error(e); return Boolean.FALSE; } finally { myLock.writeLock().unlock(); } return Boolean.TRUE; }