stopLister();
lister = null;
if (instanceInfo != null
&& instanceInfo.getConnector() instanceof ConnectorShutdownAware) {
ConnectorShutdownAware csa =
(ConnectorShutdownAware)(instanceInfo.getConnector());
try {
LOGGER.fine("Shutting down connector " + name);
csa.shutdown();
} catch (Exception e) {
LOGGER.log(Level.WARNING, "Problem shutting down connector " + name
+ " during configuration update.", e);
}
if (delete) {
try {
LOGGER.fine("Removing connector " + name);
csa.delete();
} catch (Exception e) {
LOGGER.log(Level.WARNING, "Failed to remove connector " + name, e);
}
}
}