public static boolean writeConfigToFile(String info) {

    if (Util.isNullOrNil(info)) {

      return false;
    }
    try {
      Map<String, String> maps = KVConfig.parseXml(info, "voip", null);

      if (maps == null) {
        return false;
      }
    } catch (Exception e) {
      e.printStackTrace();
      return false;
    }

    boolean flag = false;
    File filePath = new File(ConstantsStorage.DATAROOT_MOBILEMEM_PATH);
    if (!filePath.exists()) {
      filePath.mkdirs();
    }
    FileWriter fw = null;
    try {
      fw = new FileWriter(ConstantsStorage.DATAROOT_MOBILEMEM_PATH + LOCAL_CONFIG_FILENAME);
      fw.write(info);
      flag = true;
      if (fw != null) {
        fw.close();
      }

    } catch (Exception e) {
      e.printStackTrace();

    } finally {
      if (fw != null)
        try {
          fw.close();
        } catch (IOException e) {
          e.printStackTrace();
        }
    }

    return flag;
  }