Program: 28109
Project: 28109
Buggy source:
/** 
 * @param event
 */
@Override @SuppressWarnings({"String_Node_Str"}) public void event(Event event){
  if (event.is(EventTypes.SERVER_READY)) {
    serverReady=true;
    initialiseInstanceDescriptor();
    PayaraInternalEvent pie=new PayaraInternalEvent(PayaraInternalEvent.MESSAGE.ADDED,me);
    ClusterMessage<PayaraInternalEvent> message=new ClusterMessage<>(pie);
    this.cluster.getEventBus().publish(INTERNAL_EVENTS_NAME,message);
    for (    String appName : appRegistry.getAllApplicationNames()) {
      me.addApplication(new ApplicationDescriptorImpl(appRegistry.get(appName)));
    }
    cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
  }
 else   if (event.is(Deployment.APPLICATION_LOADED)) {
    if (serverReady && event.hook() != null && event.hook() instanceof ApplicationInfo) {
      ApplicationInfo applicationInfo=(ApplicationInfo)event.hook();
      me.addApplication(new ApplicationDescriptorImpl(applicationInfo));
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 else   if (event.is(Deployment.APPLICATION_UNLOADED)) {
    if (event.hook() != null && event.hook() instanceof ApplicationInfo) {
      ApplicationInfo applicationInfo=(ApplicationInfo)event.hook();
      me.removeApplication(new ApplicationDescriptorImpl(applicationInfo));
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 else   if (event.is(HazelcastEvents.HAZELCAST_SHUTDOWN_STARTED)) {
    PayaraInternalEvent pie=new PayaraInternalEvent(PayaraInternalEvent.MESSAGE.REMOVED,me);
    ClusterMessage<PayaraInternalEvent> message=new ClusterMessage<>(pie);
    this.cluster.getClusteredStore().remove(INSTANCE_STORE_NAME,myCurrentID);
    this.cluster.getEventBus().publish(INTERNAL_EVENTS_NAME,message);
  }
  if (event.is(HazelcastEvents.HAZELCAST_BOOTSTRAP_COMPLETE)) {
    initialiseInstanceDescriptor();
    cluster.getEventBus().removeMessageReceiver(INTERNAL_EVENTS_NAME,this);
    cluster.getEventBus().removeMessageReceiver(CDI_EVENTS_NAME,this);
    cluster.getEventBus().addMessageReceiver(INTERNAL_EVENTS_NAME,this);
    cluster.getEventBus().addMessageReceiver(CDI_EVENTS_NAME,this);
  }
  if (event.is(HazelcastEvents.HAZELCAST_GENERATED_NAME_CHANGE)) {
    initialiseInstanceDescriptor();
  }
}

Fixed version (ground truth):
/** 
 * @param event
 */
@Override @SuppressWarnings({"String_Node_Str"}) public void event(Event event){
  if (event.is(EventTypes.SERVER_READY)) {
    initialiseInstanceDescriptor();
    PayaraInternalEvent pie=new PayaraInternalEvent(PayaraInternalEvent.MESSAGE.ADDED,me);
    ClusterMessage<PayaraInternalEvent> message=new ClusterMessage<>(pie);
    this.cluster.getEventBus().publish(INTERNAL_EVENTS_NAME,message);
    for (    String appName : appRegistry.getAllApplicationNames()) {
      me.addApplication(new ApplicationDescriptorImpl(appRegistry.get(appName)));
    }
    cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
  }
 else   if (event.is(Deployment.APPLICATION_STARTED)) {
    if (event.hook() != null && event.hook() instanceof ApplicationInfo) {
      ApplicationInfo applicationInfo=(ApplicationInfo)event.hook();
      me.addApplication(new ApplicationDescriptorImpl(applicationInfo));
      log.log(Level.FINE,"String_Node_Str",new Object[]{hazelcast.isEnabled(),myCurrentID,applicationInfo.getName()});
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 else   if (event.is(Deployment.APPLICATION_UNLOADED)) {
    if (event.hook() != null && event.hook() instanceof ApplicationInfo) {
      ApplicationInfo applicationInfo=(ApplicationInfo)event.hook();
      me.removeApplication(new ApplicationDescriptorImpl(applicationInfo));
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 else   if (event.is(HazelcastEvents.HAZELCAST_SHUTDOWN_STARTED)) {
    PayaraInternalEvent pie=new PayaraInternalEvent(PayaraInternalEvent.MESSAGE.REMOVED,me);
    ClusterMessage<PayaraInternalEvent> message=new ClusterMessage<>(pie);
    this.cluster.getClusteredStore().remove(INSTANCE_STORE_NAME,myCurrentID);
    this.cluster.getEventBus().publish(INTERNAL_EVENTS_NAME,message);
  }
  if (event.is(HazelcastEvents.HAZELCAST_BOOTSTRAP_COMPLETE)) {
    initialiseInstanceDescriptor();
    log.log(Level.FINE,"String_Node_Str",new Object[]{hazelcast.isEnabled(),myCurrentID});
    cluster.getEventBus().removeMessageReceiver(INTERNAL_EVENTS_NAME,this);
    cluster.getEventBus().removeMessageReceiver(CDI_EVENTS_NAME,this);
    cluster.getEventBus().addMessageReceiver(INTERNAL_EVENTS_NAME,this);
    cluster.getEventBus().addMessageReceiver(CDI_EVENTS_NAME,this);
  }
  if (event.is(HazelcastEvents.HAZELCAST_GENERATED_NAME_CHANGE)) {
    initialiseInstanceDescriptor();
  }
}