}
long startTime = System.currentTimeMillis();
long duration = 0;
synchronized(this) {
try {
JarSigner jarSigner = new JarSigner(DEFAULT_DIGEST_ALGORITHM,
DEFAULT_KEY_ALGORITHM);
jarSigner.signJar(unsignedJar, signedJar, alias, attrs, additionalContent);
} catch (Throwable t) {
/*
*The jar signer will have written some information to System.out
*/
throw new Exception(localStrings.getString("jws.sign.errorSigning",