private synchronized void putMapEntry(String localId,MapEntry entry){
  if (!isLocalId(localId)) {
    throw new IllegalStateException("Tried to get invalid local id: \"" + localId + "\".");
  }
  JSONObject json=new JSONObject();
  try {
    json.put("retainCount",entry.retainCount);
    if (entry.objectId != null) {
      json.put("objectId",entry.objectId);
    }
  }
 catch (  JSONException je) {
    throw new IllegalStateException("Error creating local id map entry.",je);
  }
  File file=new File(diskPath,localId);
  if (!diskPath.exists()) {
    diskPath.mkdirs();
  }
  try {
    ParseFileUtils.writeJSONObjectToFile(file,json);
  }
 catch (  IOException e) {
  }
}

private synchronized void putMapEntry ( String localId , MapEntry entry ) { if ( ! isLocalId ( localId ) ) { throw new IllegalStateException ( "Tried to get invalid local id: \"" + localId + "\"." ) ; } JSONObject json = new JSONObject ( ) ; try { json . put ( "retainCount" , entry . retainCount ) ; if ( entry . objectId != null ) { json . put ( "objectId" , entry . objectId ) ; } } catch ( JSONException je ) { throw new IllegalStateException ( "Error creating local id map entry." , je ) ; } File file = new File ( diskPath , localId ) ; if ( ! diskPath . exists ( ) ) { diskPath . mkdirs ( ) ; } try { ParseFileUtils . writeJSONObjectToFile ( file , json ) ; } catch ( IOException e ) { } }
writes one entry to the local id map on disk .
