Program: 53299
Project: 53299
Buggy source:
@Override public Object getValue(int index,int selector,Object parameters){
  if (index == 1) {
    return getLogicalName();
  }
 else   if (index == 2) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(3);
    try {
      GXCommon.setData(data,DataType.INT16,MonitoredValue.getObjectType());
      GXCommon.setData(data,DataType.OCTET_STRING,MonitoredValue.getLogicalName());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data;
  }
 else   if (index == 3) {
    return ThresholdActive;
  }
 else   if (index == 4) {
    return ThresholdNormal;
  }
 else   if (index == 5) {
    return ThresholdEmergency;
  }
 else   if (index == 6) {
    return MinOverThresholdDuration;
  }
 else   if (index == 7) {
    return MinUnderThresholdDuration;
  }
 else   if (index == 8) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(3);
    try {
      GXCommon.setData(data,DataType.UINT16,EmergencyProfile.getID());
      GXCommon.setData(data,DataType.DATETIME,EmergencyProfile.getActivationTime());
      GXCommon.setData(data,DataType.UINT32,EmergencyProfile.getDuration());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data;
  }
 else   if (index == 9) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.ARRAY.getValue());
    data.write((byte)EmergencyProfileGroupIDs.length);
    try {
      for (      Object it : EmergencyProfileGroupIDs) {
        GXCommon.setData(data,DataType.UINT16,it);
      }
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data;
  }
 else   if (index == 10) {
    return EmergencyProfileActive;
  }
 else   if (index == 11) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(2);
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(2);
    try {
      GXCommon.setData(data,DataType.OCTET_STRING,ActionOverThreshold.getLogicalName());
      GXCommon.setData(data,DataType.UINT16,ActionOverThreshold.getScriptSelector());
      data.write((byte)DataType.STRUCTURE.getValue());
      data.write(2);
      GXCommon.setData(data,DataType.OCTET_STRING,ActionUnderThreshold.getLogicalName());
      GXCommon.setData(data,DataType.UINT16,ActionUnderThreshold.getScriptSelector());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data;
  }
  throw new IllegalArgumentException("String_Node_Str");
}

Fixed version (ground truth):
@Override public Object getValue(int index,int selector,Object parameters){
  if (index == 1) {
    return getLogicalName();
  }
 else   if (index == 2) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(3);
    try {
      GXCommon.setData(data,DataType.INT16,MonitoredValue.getObjectType().getValue());
      GXCommon.setData(data,DataType.OCTET_STRING,MonitoredValue.getLogicalName());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data.toByteArray();
  }
 else   if (index == 3) {
    return ThresholdActive;
  }
 else   if (index == 4) {
    return ThresholdNormal;
  }
 else   if (index == 5) {
    return ThresholdEmergency;
  }
 else   if (index == 6) {
    return MinOverThresholdDuration;
  }
 else   if (index == 7) {
    return MinUnderThresholdDuration;
  }
 else   if (index == 8) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(3);
    try {
      GXCommon.setData(data,DataType.UINT16,EmergencyProfile.getID());
      GXCommon.setData(data,DataType.DATETIME,EmergencyProfile.getActivationTime());
      GXCommon.setData(data,DataType.UINT32,EmergencyProfile.getDuration());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data.toByteArray();
  }
 else   if (index == 9) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.ARRAY.getValue());
    data.write((byte)EmergencyProfileGroupIDs.length);
    try {
      for (      Object it : EmergencyProfileGroupIDs) {
        GXCommon.setData(data,DataType.UINT16,it);
      }
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data.toByteArray();
  }
 else   if (index == 10) {
    return EmergencyProfileActive;
  }
 else   if (index == 11) {
    ByteArrayOutputStream data=new ByteArrayOutputStream();
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(2);
    data.write((byte)DataType.STRUCTURE.getValue());
    data.write(2);
    try {
      GXCommon.setData(data,DataType.OCTET_STRING,ActionOverThreshold.getLogicalName());
      GXCommon.setData(data,DataType.UINT16,ActionOverThreshold.getScriptSelector());
      data.write((byte)DataType.STRUCTURE.getValue());
      data.write(2);
      GXCommon.setData(data,DataType.OCTET_STRING,ActionUnderThreshold.getLogicalName());
      GXCommon.setData(data,DataType.UINT16,ActionUnderThreshold.getScriptSelector());
    }
 catch (    Exception ex) {
      throw new RuntimeException(ex.getMessage());
    }
    return data.toByteArray();
  }
  throw new IllegalArgumentException("String_Node_Str");
}