Source:
public void start() throws ServiceLifecycleException { KeyStore keystore; try { keystore = ks.getSigningKeystore(); if (keystore == null) { throw new ServiceLifecycleException(RESOURCES.signingKeystoreNotAvailable(config.getSigningKeystorePath())); } } catch (KeystoreServiceException e) { throw new ServiceLifecycleException(RESOURCES.signingKeystoreNotAvailable(config.getSigningKeystorePath()), e); } char[] passphrase; try { passphrase = as.getSigningKeyPassphrase(); if (passphrase == null) { throw new ServiceLifecycleException(RESOURCES.signingKeyPassphraseNotAvailable(config.getSigningKeyAlias())); } } catch (AliasServiceException e) { throw new ServiceLifecycleException(RESOURCES.signingKeyPassphraseNotAvailable(config.getSigningKeyAlias()), e); } String defaultAliasName = getSigningKeyAlias(null); try { Certificate certificate = keystore.getCertificate(defaultAliasName); if(certificate == null) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(defaultAliasName)); } PublicKey publicKey = certificate.getPublicKey(); if (publicKey == null) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(defaultAliasName)); } else if (! (publicKey instanceof RSAPublicKey)) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyWrongType(defaultAliasName)); } } catch (KeyStoreException e) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(defaultAliasName), e); } try { Key key = keystore.getKey(defaultAliasName, passphrase); if (key == null) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyNotFound(defaultAliasName)); } else if (! (key instanceof RSAPrivateKey)) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyWrongType(defaultAliasName)); } } catch (KeyStoreException | NoSuchAlgorithmException | UnrecoverableKeyException e) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyNotFound(defaultAliasName), e); } }

Target:
public void start() throws ServiceLifecycleException { KeyStore keystore; try { keystore = ks.getSigningKeystore(); if (keystore == null) { throw new ServiceLifecycleException(RESOURCES.signingKeystoreNotAvailable(config.getSigningKeystorePath())); } } catch (KeystoreServiceException e) { throw new ServiceLifecycleException(RESOURCES.signingKeystoreNotAvailable(config.getSigningKeystorePath()), e); } char[] passphrase; try { passphrase = as.getSigningKeyPassphrase(); if (passphrase == null) { throw new ServiceLifecycleException(RESOURCES.signingKeyPassphraseNotAvailable(config.getSigningKeyPassphraseAlias())); } } catch (AliasServiceException e) { throw new ServiceLifecycleException(RESOURCES.signingKeyPassphraseNotAvailable(config.getSigningKeyPassphraseAlias()), e); } String signingKeyAlias = getSigningKeyAlias(); try { Certificate certificate = keystore.getCertificate(signingKeyAlias); if(certificate == null) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(signingKeyAlias)); } PublicKey publicKey = certificate.getPublicKey(); if (publicKey == null) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(signingKeyAlias)); } else if (! (publicKey instanceof RSAPublicKey)) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyWrongType(signingKeyAlias)); } } catch (KeyStoreException e) { throw new ServiceLifecycleException(RESOURCES.publicSigningKeyNotFound(signingKeyAlias), e); } try { Key key = keystore.getKey(signingKeyAlias, passphrase); if (key == null) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyNotFound(signingKeyAlias)); } else if (! (key instanceof RSAPrivateKey)) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyWrongType(signingKeyAlias)); } } catch (KeyStoreException | NoSuchAlgorithmException | UnrecoverableKeyException e) { throw new ServiceLifecycleException(RESOURCES.privateSigningKeyNotFound(signingKeyAlias), e); } }