void save() throws OperationFailedException { if (resolvedPath == null) { throw ROOT_LOGGER.cantSaveWithoutFile(path); } ROOT_LOGGER.tracef("saving KeyStore to the file [%s]", resolvedPath); try (FileOutputStream fos = new FileOutputStream(resolvedPath)) { keyStore.store(fos, resolvePassword()); synched = System.currentTimeMillis(); trackingKeyStore.setModified(false); } catch (Exception e) { throw ROOT_LOGGER.unableToCompleteOperation(e, e.getLocalizedMessage()); } }