/** {@inheritDoc} */ @Override public void close() { if (fileOutStream != null) { try { fileOutStream.close(); } catch (Exception e) { // We cannot throw an exception within a release method. LOG.log(Level.WARNING, "Unable to close file output stream.", e); } fileOutStream = null; } if (fileInStream != null) { try { fileInStream.close(); } catch (Exception e) { // We cannot throw an exception within a release method. LOG.log(Level.WARNING, "Unable to close file input stream.", e); } fileInStream = null; } if (nodeStorageFile != null) { if (!nodeStorageFile.delete()) { // We cannot throw an exception within a release method. LOG.warning("Unable to delete file " + nodeStorageFile); } nodeStorageFile = null; } }