Program: 28108
Project: 28108
Buggy source:
private void initialiseInstanceDescriptor(){
  boolean liteMember=false;
  int hazelcastPort=5900;
  if (hazelcast.isEnabled()) {
    instanceName=hazelcast.getMemberName();
    instanceGroup=hazelcast.getMemberGroup();
    myCurrentID=hazelcast.getUUID();
    liteMember=hazelcast.isLite();
    hazelcastPort=hazelcast.getPort();
  }
 else {
    instanceName="String_Node_Str";
    instanceGroup="String_Node_Str";
  }
  String instanceType=environment.getRuntimeType().toString();
  List<Integer> ports=new ArrayList<>();
  List<Integer> sslPorts=new ArrayList<>();
  int adminPort=0;
  for (  NetworkListener networkListener : context.getConfigBean().getConfig().getNetworkConfig().getNetworkListeners().getNetworkListener()) {
    if (Boolean.parseBoolean(networkListener.getEnabled())) {
      if (networkListener.findProtocol().getSecurityEnabled().equals("String_Node_Str")) {
        if (networkListener.getName().equals(context.getConfigBean().getConfig().getAdminListener().getName())) {
          if (instanceType.equals("String_Node_Str")) {
            ports.add(Integer.parseInt(networkListener.getPort()));
          }
          adminPort=Integer.parseInt(networkListener.getPort());
        }
 else {
          ports.add(Integer.parseInt(networkListener.getPort()));
        }
      }
 else       if (networkListener.findProtocol().getSecurityEnabled().equals("String_Node_Str")) {
        if (networkListener.getName().equals(context.getConfigBean().getConfig().getAdminListener().getName())) {
          if (instanceType.equals("String_Node_Str")) {
            ports.add(Integer.parseInt(networkListener.getPort()));
          }
          adminPort=Integer.parseInt(networkListener.getPort());
        }
 else {
          sslPorts.add(Integer.parseInt(networkListener.getPort()));
        }
      }
    }
  }
  try {
    Collection<ApplicationDescriptor> deployedApplications=new ArrayList<>();
    if (me != null) {
      deployedApplications=me.getDeployedApplications();
    }
    me=new InstanceDescriptorImpl(myCurrentID);
    me.setInstanceName(instanceName);
    me.setInstanceGroup(instanceGroup);
    for (    int port : ports) {
      me.addHttpPort(port);
    }
    for (    int sslPort : sslPorts) {
      me.addHttpsPort(sslPort);
    }
    me.setAdminPort(adminPort);
    me.setHazelcastPort(hazelcastPort);
    me.setLiteMember(liteMember);
    me.setInstanceType(instanceType);
    if (!deployedApplications.isEmpty()) {
      for (      ApplicationDescriptor application : deployedApplications) {
        me.addApplication(application);
      }
    }
    if (cluster.isEnabled()) {
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 catch (  UnknownHostException ex) {
    logger.log(Level.SEVERE,"String_Node_Str",ex);
  }
}

Fixed version (ground truth):
private void initialiseInstanceDescriptor(){
  boolean liteMember=false;
  int hazelcastPort=5900;
  if (hazelcast.isEnabled()) {
    instanceName=hazelcast.getMemberName();
    instanceGroup=hazelcast.getMemberGroup();
    myCurrentID=hazelcast.getUUID();
    liteMember=hazelcast.isLite();
    hazelcastPort=hazelcast.getPort();
  }
 else {
    instanceName="String_Node_Str";
    instanceGroup="String_Node_Str";
  }
  String instanceType=environment.getRuntimeType().toString();
  List<Integer> ports=new ArrayList<>();
  List<Integer> sslPorts=new ArrayList<>();
  int adminPort=0;
  for (  NetworkListener networkListener : context.getConfigBean().getConfig().getNetworkConfig().getNetworkListeners().getNetworkListener()) {
    if (Boolean.parseBoolean(networkListener.getEnabled())) {
      if (networkListener.findProtocol().getSecurityEnabled().equals("String_Node_Str")) {
        if (networkListener.getName().equals(context.getConfigBean().getConfig().getAdminListener().getName())) {
          if (instanceType.equals("String_Node_Str")) {
            ports.add(Integer.parseInt(networkListener.getPort()));
          }
          adminPort=Integer.parseInt(networkListener.getPort());
        }
 else {
          ports.add(Integer.parseInt(networkListener.getPort()));
        }
      }
 else       if (networkListener.findProtocol().getSecurityEnabled().equals("String_Node_Str")) {
        if (networkListener.getName().equals(context.getConfigBean().getConfig().getAdminListener().getName())) {
          if (instanceType.equals("String_Node_Str")) {
            ports.add(Integer.parseInt(networkListener.getPort()));
          }
          adminPort=Integer.parseInt(networkListener.getPort());
        }
 else {
          sslPorts.add(Integer.parseInt(networkListener.getPort()));
        }
      }
    }
  }
  try {
    Collection<ApplicationDescriptor> deployedApplications=new ArrayList<>();
    if (me != null) {
      deployedApplications=me.getDeployedApplications();
    }
    me=new InstanceDescriptorImpl(myCurrentID);
    me.setInstanceName(instanceName);
    me.setInstanceGroup(instanceGroup);
    for (    int port : ports) {
      me.addHttpPort(port);
    }
    for (    int sslPort : sslPorts) {
      me.addHttpsPort(sslPort);
    }
    me.setAdminPort(adminPort);
    me.setHazelcastPort(hazelcastPort);
    me.setLiteMember(liteMember);
    me.setInstanceType(instanceType);
    if (!deployedApplications.isEmpty()) {
      for (      ApplicationDescriptor application : deployedApplications) {
        me.addApplication(application);
      }
    }
    if (cluster.isEnabled()) {
      cluster.getClusteredStore().set(INSTANCE_STORE_NAME,myCurrentID,me);
    }
  }
 catch (  UnknownHostException ex) {
    log.log(Level.SEVERE,"String_Node_Str",ex);
  }
}