ObjectContainer object = new ObjectContainer(doc);
object.setId("prop");
object.appendChild(doc.createTextNode("\n"));
object.appendChild(props.getElement());
object.appendChild(doc.createTextNode("\n"));
//Refer the properties section of the signature which needs
//to be signed too, that include role information.
sig.appendObject(object);
sig.addDocument("#prop", transforms,