}
public Object doTransform(Object src, String encoding) throws TransformerException
{
try {
Source sourceDoc = getXmlSource(src);
<BUG>ResultHolder holder = getResultHolder(returnClass != null ? returnClass : Document.class);
assert(sourceDoc != null);</BUG>
assert(holder != null);
Transformer idTransformer = TransformerFactory.newInstance().newTransformer();
idTransformer.setOutputProperty(OutputKeys.ENCODING,encoding);

}
public Object doTransform(Object src, String encoding) throws TransformerException
{
try {
Source sourceDoc = getXmlSource(src);
if (sourceDoc == null) return null;
ResultHolder holder = getResultHolder(returnClass);
if (holder == null) holder = getResultHolder(Document.class);
assert(sourceDoc != null);
assert(holder != null);
Transformer idTransformer = TransformerFactory.newInstance().newTransformer();
idTransformer.setOutputProperty(OutputKeys.ENCODING,encoding);
