public static void publishMaintenanceModeEvent() {
if (!isMaintenance()) {
if (log.isInfoEnabled()) {
log.info("Publishing instance maintenance mode event");
}
InstanceMaintenanceModeEvent event = new InstanceMaintenanceModeEvent(
CartridgeAgentConfiguration.getInstance().getServiceName(),
CartridgeAgentConfiguration.getInstance().getClusterId(),
CartridgeAgentConfiguration.getInstance().getNetworkPartitionId(),
CartridgeAgentConfiguration.getInstance().getPartitionId(),
CartridgeAgentConfiguration.getInstance().getMemberId());