while (currentChild!=null) {
if (currentChild.getNodeType() == Node.ELEMENT_NODE) {
// not using StorageResolvers at the moment
// since they cannot return private keys
StorageResolver storage = null;
PrivateKey pk = keyResolver
.engineLookupAndResolvePrivateKey((Element) currentChild, uri, storage);
if (pk != null) {
return pk;
}