if (actionRequest.getServerPort() != toBeUpdatedConnectorPort.intValue()) {
try {
Kernel kernel = PortletManager.getKernel();
BundleContext bundleContext = kernel.getBundleFor(connectorName).getBundleContext();
kernel.stopGBean(connectorName);
kernel.unloadGBean(connectorName);
kernel.loadGBean(connectorGBeanData, bundleContext);
kernel.startGBean(connectorName);
} catch (Exception e) {
log.error("Unable to reload updated connector:" + connectorName.toURI(), e);
actionResponse.setRenderParameter("toBeUpdatedConnectorName", toBeUpdatedConnectorName);