ServletConfig config, HttpSession session) throws UIException {
try {
String packageName = (String)session.getAttribute("packageName");
String duration = (String)session.getAttribute("duration");
UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
serviceClient.updateSubscription(packageName, duration);
} catch (Exception e) {
String msg = "Failed to update the subscription.";
log.error(msg, e);
throw new UIException(msg, e);
}