setOutputProperties(_translet, _properties);  if (!_oldOutputSystem) { final TransletOutputHandler toHandler = getOutputHandler(result);
if (_uriResolver != null && !_isIdentity) { _translet.setDOMCache(this); }
    public void transform(Source source, Result result)	throws TransformerException     {	if (_translet == null) {	    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_TRANSLET_ERR);	    throw new TransformerException(err.toString());	}	// Pass output properties to the translet	setOutputProperties(_translet, _properties);	    	if (!_oldOutputSystem) {	    final TransletOutputHandler toHandler = getOutputHandler(result);	    if (toHandler == null) {		ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_HANDLER_ERR);		throw new TransformerException(err.toString());	    }	    if (_uriResolver != null) {		_translet.setDOMCache(this);	    }	    transform(source, toHandler, _encoding);	    if (result instanceof DOMResult) {		((DOMResult)result).setNode(_tohFactory.getNode());	    }	}	else {	    _handler = getOldOutputHandler(result);	    if (_handler == null) {		ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_HANDLER_ERR);		throw new TransformerException(err.toString());	    }	    if (_uriResolver != null) {		_translet.setDOMCache(this);	    }	    // Run the transformation	    transform(source, (ContentHandler)_handler, _encoding);	    // If a DOMResult, then we must set the DOM Tree so it can	    // be retrieved later 	    if (result instanceof DOMResult) {		((DOMResult)result).setNode(((SAX2DOM)_handler).getDOM());	    }	}    }