XNode includeNode = xmlMapperParser.getSqlFragment(refid);
if (includeNode == null) {
String nsrefid = builderAssistant.applyCurrentNamespace(refid);
includeNode = xmlMapperParser.getSqlFragment(nsrefid);
if (includeNode == null) {
throw new BuilderException("Could not find SQL statement to include with refid '" + refid + "'");
}
}
MixedSqlNode mixedSqlNode = new MixedSqlNode(contents(includeNode));
targetContents.add(mixedSqlNode);
}