try {
if (username != null || remoteURL != null) {
throw new UnsupportedOperationException("This method is no longer supported");
} else {
Subscription subscription = getSubscription(subscriptionId);
Map<String, String> subscriptionData = subscription.getProperties();
subscriptionData.remove(RegistryEventingConstants.NOT_VERIFIED);
subscription.setProperties(subscriptionData);
// The updated subscription should be directly done at the subMgr to avoid
// generating another verification request
subscription.setId(subscriptionId);
Utils.getRegistryEventBrokerService().renewSubscription(subscription);
}
return email;
} catch (Exception e) {
log.error("Unable to verify e-mail address", e);