XmlSignatureEndpoint endpoint;
if ("sign".equals(scheme)) {
XmlSignerConfiguration config = getSignerConfiguration().copy();
endpoint = new XmlSignerEndpoint(uri, this, config);
} else if ("verify".equals(scheme)) {
XmlVerifierConfiguration config = getVerifierConfiguration().copy();
endpoint = new XmlVerifierEndpoint(uri, this, config);
} else {
throw new IllegalStateException(
String.format(
"Endpoint uri '%s'" + " is wrong configured. Operation '%s'"