public static Element createObject4(XMLSignature sig) throws Exception {
Document doc = sig.getElement().getOwnerDocument();
String BaseURI = sig.getBaseURI();
Manifest manifest = new Manifest(doc);
manifest.addResourceResolver(new OfflineResolver());
manifest.setId("manifest-1");
manifest.addDocument(BaseURI, "http://www.w3.org/TR/xml-stylesheet",
null, Constants.ALGO_ID_DIGEST_SHA1,
"manifest-reference-1", null);