}
} else {
throw new TransformationException("empty");
}
XMLSignatureInput result = new XMLSignatureInput(resultNodes,
input.getCachedXPathAPI());
result.setSourceURI(input.getSourceURI());
return result;
} catch (TransformerException ex) {
throw new TransformationException("empty", ex);
} catch (DOMException ex) {