builder = new DOMBuilder();
builder.startDocument();
builder.startElement("", "sunShine", "sunShine", this.emptyAttributes);
IncludeXMLConsumer filter;
// Test for url rewriting
if (typeParameters != null
&& typeParameters.getParameter(URLRewriter.PARAMETER_MODE, null) != null) {
XMLConsumer consumer = new URLRewriter(typeParameters,
builder,
builder);
filter = new IncludeXMLConsumer(consumer, consumer);
} else {
filter = new IncludeXMLConsumer(builder, builder);
}
Source input = null;
try {
input = this.getSource(uri, typeParameters, resourceParameters);