private static void shutdown() {
try {
getLogger().log(Level.INFO, "nodeAgent.sending-stop");
String agentName = getConfig().getRepositoryName();
RMIClient rmiClient = AdminChannel.getRMIClient(agentName);
ShutdownEvent shutdownEvent = new ShutdownEvent(agentName, "true");
AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
} catch(Exception ex) {
getLogger().log(Level.WARNING, "nodeAgent.exception", ex);
System.exit(1);
}