These lines here do not compile because hasFileEntryLock() can throw a NoSuchFileEntryException, resulting in no return value.