} else postProblem (getDocAsString (doc));
} else {  postProblem (getDocAsArray (doc).toString()); } if (writeXMLToFile) { String suffix = (postData) ? "data" : "problem"; String fileName = getClusterName () + "_" + suffix + "_" + numFilesWritten++; System.out.println (getName () + ".serializeAndPost - Writing XML to file " + fileName); try { FileOutputStream temp = new FileOutputStream (fileName); writeDocToStream (doc, temp); } catch (FileNotFoundException fnfe) {  } }
  protected void serializeAndPost (Document doc, boolean postData) {	if (runInternal)	  appendToInternalBuffer( getDocAsArray (doc).toString());	else {	  if (postData) {		postData (getDocAsArray (doc).toString());		//	  postData (doc);	  } else		postProblem (getDocAsString (doc));	}  }