class MetadataHandler {

    public void writeAck(final File slotFile, final String id) {
        synchronized (lock) {
            try {
                final BufferedWriter writer = getWriter(slotFile);
                assert(writer != null);
                writer.write(id);
                writer.newLine();
                writer.flush();
            } catch (IOException e) {
                LOG.log(Level.WARNING, "Unable to write metadata ack entry.", e);
            }
        }
    }

    private  MetadataHandler();

}