urls[1] = file1.toURI().toURL();
URLClassLoader uc1 = new URLClassLoader
(urls, Thread.currentThread().getContextClassLoader());
//load security provider using current class loader
final Provider provider = new XMLDSigRI();
AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {
public Object run() {
Security.addProvider(provider);
return null;
}