Program: 148654
Project: 148654
Buggy source:
public Image getImage(Object obj){
  TreeObject object=(TreeObject)obj;
  if (object.getType() == TreeObject._SERVER_)   return ImageCache.getCreatedImage(EImage.DEFAULT.getPath());
 else   if (object.getType() == TreeObject.DATA_CLUSTER)   return ImageCache.getCreatedImage(EImage.DATA_CLUSTER.getPath());
 else   if (object.getType() == TreeObject.DATA_MODEL)   return ImageCache.getCreatedImage(EImage.DATA_MODEL.getPath());
 else   if (object.getType() == TreeObject.RESOURCES || object.getType() == TreeObject.DATA_MODEL_RESOURCE || object.getType() == TreeObject.DATA_MODEL_TYPES_RESOURCE || object.getType() == TreeObject.CUSTOM_TYPES_RESOURCE || object.getType() == TreeObject.PICTURES_RESOURCE)   return ImageCache.getCreatedImage(EImage.RESOURCES.getPath());
 else   if (object.getType() == TreeObject.MENU)   return ImageCache.getCreatedImage(EImage.MENU.getPath());
 else   if (object.getType() == TreeObject.TRANSFORMER)   return ImageCache.getCreatedImage(EImage.TRANSFORMER.getPath());
 else   if (object.getType() == TreeObject.ROLE)   return ImageCache.getCreatedImage(EImage.ROLE.getPath());
 else   if (object.getType() == TreeObject.STORED_PROCEDURE)   return ImageCache.getCreatedImage(EImage.STORED_PROCEDURE.getPath());
 else   if (object.getType() == TreeObject.ROUTING_RULE) {
    Image img=ImageCache.getCreatedImage(EImage.ROUTING_RULE.getPath());
    if (object.isXObject()) {
      WSRoutingRule ws=(WSRoutingRule)(object.getWsObject());
      try {
        if (ws == null)         ws=Util.getPort(object).getRoutingRule(new WSGetRoutingRule(new WSRoutingRulePK(object.getDisplayName())));
      }
 catch (      Exception e) {
      }
      if (ws != null && ws.getDeactive() != null && ws.getDeactive().booleanValue()) {
        img=OverlayImageProvider.getImageWithStatus(img,EXObjectStatus.DEACTIVE);
      }
    }
    return img;
  }
 else   if (object.getType() == TreeObject.VIEW)   return ImageCache.getCreatedImage(EImage.VIEW.getPath());
 else   if (object.getType() == TreeObject.DOCUMENT)   return ImageCache.getCreatedImage(EImage.DOCUMENTS.getPath());
 else   if (object.getType() == TreeObject.SUBSCRIPTION_ENGINE)   return ImageCache.getCreatedImage(EImage.SUBSCRIPTION_ENGINE.getPath());
 else   if (object.getType() == TreeObject.EVENT_MANAGEMENT)   return ImageCache.getCreatedImage(EImage.EVENTM_ANAGEMENT.getPath());
 else   if (object.getType() == TreeObject.WORKFLOW || object.getType() == TreeObject.WORKFLOW_PROCESS)   return ImageCache.getCreatedImage(EImage.WORKFLOW_PROCESS.getPath());
 else   if (object.getType() == TreeObject.JOB_REGISTRY || object.getType() == TreeObject.JOB || object.getType() == TreeObject.TIS_JOB)   return ImageCache.getCreatedImage(EImage.JOB.getPath());
 else   if (object.getType() == TreeObject.SERVICE_CONFIGURATION)   return ImageCache.getCreatedImage(EImage.SERVICE_CONFIGURATION.getPath());
 else   if (object.getType() == TreeObject.UNIVERSE)   return ImageCache.getCreatedImage(EImage.UNIVERSE.getPath());
 else   if (object.getType() == TreeObject.SYNCHRONIZATIONPLAN)   return ImageCache.getCreatedImage(EImage.SYNCHRONIZATIONPLAN.getPath());
 else   if (object.getType() == TreeObject.CATEGORY_FOLDER)   return ImageCache.getCreatedImage("String_Node_Str");
 else   if (object.getType() == TreeObject._INVISIBLE)   return ImageCache.getCreatedImage(EImage.SANDGLASS.getPath());
  return ImageCache.getCreatedImage("String_Node_Str");
}

Fixed version (ground truth):
public Image getImage(Object obj){
  TreeObject object=(TreeObject)obj;
  if (object.getType() == TreeObject._SERVER_)   return ImageCache.getCreatedImage(EImage.DEFAULT.getPath());
 else   if (object.getType() == TreeObject.DATA_CLUSTER)   return ImageCache.getCreatedImage(EImage.DATA_CLUSTER.getPath());
 else   if (object.getType() == TreeObject.DATA_MODEL)   return ImageCache.getCreatedImage(EImage.DATA_MODEL.getPath());
 else   if (object.getType() == TreeObject.RESOURCES || object.getType() == TreeObject.DATA_MODEL_RESOURCE || object.getType() == TreeObject.DATA_MODEL_TYPES_RESOURCE || object.getType() == TreeObject.CUSTOM_TYPES_RESOURCE || object.getType() == TreeObject.PICTURES_RESOURCE)   return ImageCache.getCreatedImage(EImage.RESOURCES.getPath());
 else   if (object.getType() == TreeObject.MENU)   return ImageCache.getCreatedImage(EImage.MENU.getPath());
 else   if (object.getType() == TreeObject.TRANSFORMER)   return ImageCache.getCreatedImage(EImage.TRANSFORMER.getPath());
 else   if (object.getType() == TreeObject.ROLE)   return ImageCache.getCreatedImage(EImage.ROLE.getPath());
 else   if (object.getType() == TreeObject.STORED_PROCEDURE)   return ImageCache.getCreatedImage(EImage.STORED_PROCEDURE.getPath());
 else   if (object.getType() == TreeObject.ROUTING_RULE) {
    Image img=ImageCache.getCreatedImage(EImage.ROUTING_RULE.getPath());
    if (object.isXObject()) {
      WSRoutingRule ws=(WSRoutingRule)(object.getWsObject());
      try {
        if (ws == null)         ws=Util.getPort(object).getRoutingRule(new WSGetRoutingRule(new WSRoutingRulePK(object.getDisplayName())));
      }
 catch (      Exception e) {
      }
      if (ws != null && ws.getDeactive() != null && ws.getDeactive().booleanValue()) {
        img=OverlayImageProvider.getImageWithStatus(img,EXObjectStatus.DEACTIVE);
      }
    }
    return img;
  }
 else   if (object.getType() == TreeObject.VIEW)   return ImageCache.getCreatedImage(EImage.VIEW.getPath());
 else   if (object.getType() == TreeObject.DOCUMENT)   return ImageCache.getCreatedImage(EImage.DOCUMENTS.getPath());
 else   if (object.getType() == TreeObject.SUBSCRIPTION_ENGINE)   return ImageCache.getCreatedImage(EImage.SUBSCRIPTION_ENGINE.getPath());
 else   if (object.getType() == TreeObject.EVENT_MANAGEMENT)   return ImageCache.getCreatedImage(EImage.EVENTM_ANAGEMENT.getPath());
 else   if (object.getType() == TreeObject.WORKFLOW || object.getType() == TreeObject.WORKFLOW_PROCESS)   return ImageCache.getCreatedImage(EImage.WORKFLOW_PROCESS.getPath());
 else   if (object.getType() == TreeObject.JOB_REGISTRY || object.getType() == TreeObject.JOB || object.getType() == TreeObject.TIS_JOB)   return ImageCache.getCreatedImage(EImage.JOB.getPath());
 else   if (object.getType() == TreeObject.SERVICE_CONFIGURATION)   return ImageCache.getCreatedImage(EImage.SERVICE_CONFIGURATION.getPath());
 else   if (object.getType() == TreeObject.UNIVERSE)   return ImageCache.getCreatedImage(EImage.UNIVERSE.getPath());
 else   if (object.getType() == TreeObject.SYNCHRONIZATIONPLAN)   return ImageCache.getCreatedImage(EImage.SYNCHRONIZATIONPLAN.getPath());
 else   if (object.getType() == TreeObject.CATEGORY_FOLDER || object.getType() == TreeObject.BUILT_IN_CATEGORY_FOLDER)   return ImageCache.getCreatedImage("String_Node_Str");
 else   if (object.getType() == TreeObject._INVISIBLE)   return ImageCache.getCreatedImage(EImage.SANDGLASS.getPath());
  return ImageCache.getCreatedImage("String_Node_Str");
}