for (int i = 0; i < attribs.size(); i++) {
int stop = attribs.size(); for (int i = 0; i < stop; i++) {
   public void toXDFOutputStream ( OutputStream outputstream,                                  Hashtable XMLDeclAttribs,                                  String indent                                )  {    boolean niceOutput = super.sPrettyXDFOutput;    String myIndent;    if (indent!=null)      myIndent = indent;    else      myIndent = "";    String moreIndent = myIndent + super.sPrettyXDFOutputIndentation;    if (niceOutput)      writeOut(outputstream, myIndent);    //open the read block    writeOut(outputstream, "<"+classXDFNodeName);    //get attribute info     Hashtable xmlInfo = getXMLInfo();    //write out attributes    ArrayList attribs = (ArrayList) xmlInfo.get("attribList");    synchronized(attribs) {  //sync, prevent the attribs' structure be changed      for (int i = 0; i < attribs.size(); i++) {        Hashtable item = (Hashtable) attribs.get(i);        writeOut(outputstream, " "+ item.get("name") + "=\"" + item.get("value") + "\"");      }    }    writeOut(outputstream, ">");    if (niceOutput)      writeOut(outputstream, Constants.NEW_LINE);    //write out the tags info    List tags = Collections.synchronizedList(getAxisTags());    List axisList = parentArray.getAxisList();    String axisId;    String tag;    for (int i = 0; i <axisList.size(); i++) {     axisId = ((Axis) axisList.get(i)).getAxisId();     tag = (String)tags.get(i);     if (niceOutput) {      writeOut(outputstream, moreIndent);     }     writeOut(outputstream, "<" + TagToAxisNodeName + " axisIdRef=\\" + axisId + "\\" + "tag = \\" + tag + "\\/>");     if (niceOutput) {      writeOut(outputstream,Constants.NEW_LINE);     }    }    //close the read block    if (niceOutput) {      writeOut(outputstream,indent);     }     writeOut(outputstream, "</"+classXDFNodeName+">");    if (niceOutput) {      writeOut(outputstream,Constants.NEW_LINE);     }  }