public void putDocumentInCache(int n,Source source){
  int cachedNode=getNode(source);
  if (DTM.NULL != cachedNode) {
    if (!(cachedNode == n))     throw new RuntimeException("Programmer's Error!  " + "putDocumentInCache found reparse of doc: " + source.getSystemId());
    return;
  }
  if (null != source.getSystemId()) {
    m_sourceTree.addElement(new SourceTree(n,source.getSystemId()));
  }
}

public void putDocumentInCache ( int n , Source source ) { int cachedNode = getNode ( source ) ; if ( DTM . NULL != cachedNode ) { if ( ! ( cachedNode == n ) ) throw new RuntimeException ( "Programmer's Error!  " + "putDocumentInCache found reparse of doc: " + source . getSystemId ( ) ) ; return ; } if ( null != source . getSystemId ( ) ) { m_sourceTree . addElement ( new SourceTree ( n , source . getSystemId ( ) ) ) ; } }
put the source tree root node in the document cache . todo : this function needs to be a lot more sophisticated .
