@Override
 public void rename(String oldAlias, String newAlias) throws KeyStoreException, IOException {
   try {
     handler.rename(oldAlias, newAlias, configuration.getKeyPasswords().get(oldAlias));
   } catch (UnrecoverableKeyException e) {
     throw new KeyStoreException(e);
   } catch (NoSuchAlgorithmException e) {
     throw new RuntimeException(e);
   }
   if (saveOnChange) {
     save();
   }
 }