class ConfigStorageClient {

  public synchronized Void write(ConfigContainer container) throws IOException {
    // TODO(issues/262): Consider using the AtomicFile class instead.
    FileOutputStream outputStream = context.openFileOutput(fileName, Context.MODE_PRIVATE);
    try {
      outputStream.write(container.toString().getBytes(JSON_STRING_ENCODING));
    } finally {
      outputStream.close();
    }
    return null;
  }

  private  ConfigStorageClient(Context context, String fileName);

}