boolean () { try { String docName = getDocumentName(); Document cached = loadContent(docName, getDocumentContentFile(docName)); if (cached == null || cached.getVersion().isUnknown()) { return false; } Document bundled = loadContent(docName, getBundledResourcePath(docName)); if (!bundled.getVersion().isUnknown() && bundled.getVersion().isNewer(cached.getVersion())) { try { // update content only and not the active document name // active document name can be changed by JBA only writeToFile(getDocumentContentFile(docName), bundled.getText()); } catch (NoSuchFileException e) { LOG.info(e.getMessage()); } catch (IOException e) { LOG.info(e); } return true; } } catch (Throwable ignored) { } return false; }