@Override public void store(Storage storage) throws StorageException { try { BufferedWriter bufferedWriterInst = new BufferedWriter(new OutputStreamWriter(storage.create(getNamespace(), getEntity()))); String serializedResource = getConfiguration().serialize(); bufferedWriterInst.write(serializedResource); bufferedWriterInst.close(); } catch (IOException e) { throw new StorageException(e.getMessage()); } catch (SerdeException e) { throw new StorageException(e.getMessage()); } }