Program: 122562
Project: 122562
Buggy source:
/** 
 * nrousseau Comment method "checkNodePropertiesFromRepository".
 * @param node
 * @return true if the data have been modified
 */
@SuppressWarnings("String_Node_Str") private List<UpdateResult> checkNodePropertiesFromRepository(final Node node,boolean onlySimpleShow){
  if (node == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> propertiesResults=new ArrayList<UpdateResult>();
  String propertyType=(String)node.getPropertyValue(EParameterName.PROPERTY_TYPE.getName());
  if (propertyType != null) {
    if (propertyType.equals(EmfComponent.REPOSITORY)) {
      String propertyValue=(String)node.getPropertyValue(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
      if (node.getComponent().getName().startsWith("String_Node_Str")) {
        if (propertyValue.contains("String_Node_Str")) {
          propertyValue=propertyValue.split("String_Node_Str")[0];
        }
      }
      IRepositoryViewObject lastVersion=UpdateRepositoryUtils.getRepositoryObjectById(propertyValue);
      UpdateCheckResult result=null;
      Connection repositoryConnection=null;
      RulesItem repositoryRulesItem=null;
      LinkRulesItem repositoryLinkRulesItem=null;
      String source=null;
      Item item=null;
      if (lastVersion != null) {
        item=lastVersion.getProperty().getItem();
        if (item != null && item instanceof ConnectionItem) {
          source=UpdateRepositoryUtils.getRepositorySourceName(item);
          repositoryConnection=((ConnectionItem)item).getConnection();
        }
        if (item != null && item instanceof FileItem) {
          if (item instanceof RulesItem) {
            repositoryRulesItem=(RulesItem)item;
          }
        }
        if (item != null && item instanceof LinkRulesItem) {
          repositoryLinkRulesItem=(LinkRulesItem)item;
        }
      }
      if (repositoryConnection != null) {
        boolean sameValues=true;
        boolean isXsdPath=false;
        if (repositoryConnection instanceof XmlFileConnectionImpl) {
          String filePath=((XmlFileConnectionImpl)repositoryConnection).getXmlFilePath();
          if (filePath != null) {
            if (XmlUtil.isXSDFile(filePath)) {
              isXsdPath=true;
            }
          }
        }
        boolean needBuildIn=false;
        if (repositoryConnection instanceof SalesforceSchemaConnection && !((SalesforceSchemaConnection)repositoryConnection).isUseCustomModuleName()) {
          IElementParameter param=node.getElementParameter("String_Node_Str");
          if (param != null) {
            boolean found=false;
            SalesforceSchemaConnection salesforceConnection=(SalesforceSchemaConnection)repositoryConnection;
            List<SalesforceModuleUnit> units=salesforceConnection.getModules();
            for (            SalesforceModuleUnit unit : units) {
              if (unit.getLabel() != null && unit.getLabel().equals(param.getValue())) {
                found=true;
                break;
              }
            }
            if (!found) {
              result=new UpdateCheckResult(node);
              result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
              needBuildIn=true;
            }
          }
        }
        for (        IElementParameter param : node.getElementParameters()) {
          if (needBuildIn) {
            break;
          }
          String repositoryValue=param.getRepositoryValue();
          if ((repositoryValue != null) && (param.isShow(node.getElementParameters()) || (node instanceof INode && ((INode)node).getComponent().getName().equals("String_Node_Str")) || (node instanceof INode && ((INode)node).getComponent().getName().equals("String_Node_Str")))) {
            if ((param.getFieldType().equals(EParameterFieldType.FILE) && isXsdPath) || (repositoryConnection instanceof SalesforceSchemaConnection && "String_Node_Str".equals(repositoryValue) && !((SalesforceSchemaConnection)repositoryConnection).isUseCustomModuleName())) {
              continue;
            }
            IMetadataTable table=null;
            if (!node.getMetadataList().isEmpty()) {
              table=node.getMetadataList().get(0);
            }
            Object objectValue=RepositoryToComponentProperty.getValue(repositoryConnection,repositoryValue,table);
            if (objectValue == null || "String_Node_Str".equals(objectValue)) {
              if (GlobalServiceRegister.getDefault().isServiceRegistered(IESBService.class)) {
                IESBService service=(IESBService)GlobalServiceRegister.getDefault().getService(IESBService.class);
                if (service != null) {
                  objectValue=service.getValue(item,repositoryValue,node);
                }
              }
            }
            if (param.getName().equals(EParameterName.CDC_TYPE_MODE.getName()) && item instanceof DatabaseConnectionItem) {
              if (PluginChecker.isCDCPluginLoaded()) {
                ICDCProviderService service=(ICDCProviderService)GlobalServiceRegister.getDefault().getService(ICDCProviderService.class);
                if (service != null) {
                  try {
                    List<IRepositoryViewObject> all;
                    all=CorePlugin.getDefault().getProxyRepositoryFactory().getAll(ERepositoryObjectType.METADATA_CONNECTIONS);
                    for (                    IRepositoryViewObject obj : all) {
                      Item tempItem=obj.getProperty().getItem();
                      if (tempItem instanceof DatabaseConnectionItem) {
                        String cdcLinkId=service.getCDCConnectionLinkId((DatabaseConnectionItem)tempItem);
                        if (cdcLinkId != null && item.getProperty().getId().equals(cdcLinkId)) {
                          objectValue=RepositoryToComponentProperty.getValue(((DatabaseConnectionItem)tempItem).getConnection(),repositoryValue,node.getMetadataList().get(0));
                          break;
                        }
                      }
                    }
                  }
 catch (                  PersistenceException e) {
                    ExceptionHandler.process(e);
                  }
                }
              }
            }
            Object value=param.getValue();
            if (objectValue != null) {
              if ((param.getFieldType().equals(EParameterFieldType.CLOSED_LIST) && UpdatesConstants.TYPE.equals(param.getRepositoryValue()))) {
                boolean found=false;
                String[] list=param.getListRepositoryItems();
                for (int i=0; (i < list.length) && (!found); i++) {
                  if (objectValue.equals(list[i])) {
                    found=true;
                  }
                }
                if (!found) {
                  sameValues=false;
                }
              }
 else {
                if (param.getFieldType().equals(EParameterFieldType.TABLE)) {
                  List<Map<String,Object>> oldList=(List<Map<String,Object>>)value;
                  String name=param.getName();
                  if ("String_Node_Str".equals(name) || "String_Node_Str".equals(name) || "String_Node_Str".equals(name) && !oldList.isEmpty() && objectValue instanceof List) {
                    List objectList=(List)objectValue;
                    if (oldList.size() != objectList.size()) {
                      sameValues=false;
                    }
 else {
                      for (int i=0; i < oldList.size(); i++) {
                        Map<String,Object> oldMap=oldList.get(i);
                        Map<String,Object> objectMap=(Map<String,Object>)objectList.get(i);
                        if (oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str")) && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str")) && ((oldMap.get("String_Node_Str") == null && objectMap.get("String_Node_Str") == null) || (oldMap.get("String_Node_Str") != null && objectMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))))&& ((oldMap.get("String_Node_Str") == null && objectMap.get("String_Node_Str") == null) || (oldMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))))) {
                          sameValues=true;
                        }
 else {
                          sameValues=false;
                          break;
                        }
                      }
                    }
                  }
 else                   if (param.getName().equals("String_Node_Str") && oldList != null && objectValue instanceof List) {
                    List repList=(List)objectValue;
                    if (oldList.size() == repList.size()) {
                      for (                      Map<String,Object> line : oldList) {
                        final String sheetName="String_Node_Str";
                        Object oldValue=line.get(sheetName);
                        if (oldValue instanceof String && repList.get(0) instanceof Map) {
                          boolean found=false;
                          for (                          Map map : (List<Map>)repList) {
                            Object repValue=map.get(sheetName);
                            if (oldValue.equals(repValue)) {
                              found=true;
                              break;
                            }
                          }
                          if (!found) {
                            sameValues=false;
                            break;
                          }
                        }
                      }
                    }
 else {
                      sameValues=false;
                    }
                  }
 else                   if (param.getName().equals("String_Node_Str") && oldList != null) {
                    List objectList=(List)objectValue;
                    if (oldList.size() != objectList.size()) {
                      sameValues=false;
                    }
 else {
                      for (int i=0; i < oldList.size(); i++) {
                        Map<String,Object> oldMap=oldList.get(i);
                        Map<String,Object> objectMap=(Map<String,Object>)objectList.get(i);
                        if (oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))) {
                          sameValues=true;
                        }
 else {
                          sameValues=false;
                          break;
                        }
                      }
                    }
                  }
                }
 else                 if (value instanceof String && objectValue instanceof String) {
                  if (!value.equals("String_Node_Str") && !value.equals(objectValue)) {
                    if (repositoryConnection instanceof XmlFileConnection) {
                      if ((((XmlFileConnection)repositoryConnection).getXmlFilePath().endsWith("String_Node_Str") || ((XmlFileConnection)repositoryConnection).getXmlFilePath().endsWith("String_Node_Str")) && repositoryValue.equals("String_Node_Str")) {
                      }
 else {
                        sameValues=false;
                      }
                    }
 else {
                      sameValues=false;
                    }
                  }
                  if (repositoryValue.equals("String_Node_Str")) {
                    IElementParameter paramEncoding=param.getChildParameters().get(EParameterName.ENCODING_TYPE.getName());
                    if (paramEncoding != null) {
                      if (repositoryConnection instanceof FTPConnection) {
                        if (((FTPConnection)repositoryConnection).getEcoding() != null) {
                          paramEncoding.setValue(((FTPConnection)repositoryConnection).getEcoding());
                        }
 else {
                          paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);
                        }
                      }
 else {
                        paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);
                      }
                    }
                  }
                }
 else                 if (value instanceof Boolean && objectValue instanceof Boolean) {
                  sameValues=((Boolean)value).equals((Boolean)objectValue);
                }
              }
            }
 else             if (param.getFieldType().equals(EParameterFieldType.TABLE) && UpdatesConstants.XML_MAPPING.equals(repositoryValue)) {
              List<Map<String,Object>> newMaps=RepositoryToComponentProperty.getXMLMappingValue(repositoryConnection,node.getMetadataList());
              if ((value instanceof List) && newMaps != null) {
                List<Map<String,Object>> oldMaps=(List<Map<String,Object>>)value;
                if (oldMaps.size() != newMaps.size()) {
                  sameValues=false;
                  break;
                }
                for (int i=0; i < newMaps.size() && sameValues; i++) {
                  Map<String,Object> newmap=newMaps.get(i);
                  Map<String,Object> oldmap=null;
                  if (i < oldMaps.size()) {
                    oldmap=oldMaps.get(i);
                  }
                  if (oldmap != null && sameValues) {
                    Object o=newmap.get(UpdatesConstants.QUERY);
                    if (o != null) {
                      sameValues=newmap.get(UpdatesConstants.QUERY).equals(oldmap.get(UpdatesConstants.QUERY));
                    }
 else {
                      sameValues=oldmap.get(UpdatesConstants.QUERY) == null;
                    }
                  }
                  if (newmap.get(UpdatesConstants.SCHEMA) != null) {
                    if (!newmap.get(UpdatesConstants.SCHEMA).equals(newmap.get(UpdatesConstants.SCHEMA))) {
                      oldmap=null;
                      for (int j=0; j < oldMaps.size(); j++) {
                        Map<String,Object> m=oldMaps.get(j);
                        if (newmap.get(UpdatesConstants.SCHEMA).equals(m.get(UpdatesConstants.SCHEMA))) {
                          oldmap=m;
                        }
                      }
                    }
                    if (oldmap == null) {
                      sameValues=false;
                    }
 else {
                      Object o=newmap.get(UpdatesConstants.MAPPING);
                      if (o != null) {
                        sameValues=o.equals(oldmap.get(UpdatesConstants.MAPPING));
                      }
 else {
                        sameValues=oldmap.get(UpdatesConstants.MAPPING) == null;
                      }
                    }
                  }
                  if (!sameValues) {
                    break;
                  }
                }
              }
            }
 else             if (param.getFieldType().equals(EParameterFieldType.TABLE) && param.getName().equals("String_Node_Str")) {
              objectValue=RepositoryToComponentProperty.getValue(repositoryConnection,param.getName(),node.getMetadataList().get(0));
              if (value == null) {
                sameValues=false;
                break;
              }
              if (objectValue == null) {
                sameValues=false;
                break;
              }
              List<Map<String,Object>> oldMaps=(List<Map<String,Object>>)value;
              List repList=(List)objectValue;
              if (oldMaps.size() == repList.size()) {
                for (                Map<String,Object> line : oldMaps) {
                  final String sheetName="String_Node_Str";
                  Object oldValue=line.get(sheetName);
                  if (oldValue instanceof String && repList.get(0) instanceof String) {
                    boolean found=false;
                    for (                    String str : (List<String>)repList) {
                      Object repValue=TalendTextUtils.addQuotes(str);
                      if (oldValue.equals(repValue)) {
                        found=true;
                        break;
                      }
                    }
                    if (!found) {
                      sameValues=false;
                      break;
                    }
                  }
                }
              }
 else {
                sameValues=false;
              }
            }
          }
          if (!sameValues) {
            break;
          }
        }
        if (onlySimpleShow || !sameValues) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.UPDATE,repositoryConnection,source);
        }
        for (        IElementParameter param : node.getElementParameters()) {
          String repositoryValue=param.getRepositoryValue();
          if (param.isShow(node.getElementParameters()) && (repositoryValue != null) && (!param.getName().equals(EParameterName.PROPERTY_TYPE.getName()))&& param.getFieldType() != EParameterFieldType.MEMO_SQL && !("String_Node_Str".equals(node.getComponent().getName()) && "String_Node_Str".equals(param.getRepositoryValue())) && !("String_Node_Str".equals(node.getComponent().getName()) && param.getName().equals(UpdatesConstants.MAPPING))) {
            param.setRepositoryValueUsed(true);
            param.setReadOnly(true);
          }
        }
        List<UpdateResult> contextResults=checkParameterContextMode(node.getElementParameters(),(ConnectionItem)lastVersion.getProperty().getItem(),null);
        if (contextResults != null) {
          propertiesResults.addAll(contextResults);
        }
      }
 else       if (repositoryRulesItem != null) {
        boolean isFindRules=false;
        IElementParameter param=node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
        if (param != null) {
          isFindRules=true;
        }
        if (!isFindRules) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
        }
      }
 else       if (repositoryLinkRulesItem != null) {
        boolean isFindLinkRules=false;
        IElementParameter param=node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
        if (param != null) {
          isFindLinkRules=true;
        }
        if (!isFindLinkRules) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
        }
      }
 else {
        result=new UpdateCheckResult(node);
        result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
      }
      if (result != null) {
        result.setJob(getProcess());
        setConfigrationForReadOnlyJob(result);
        propertiesResults.add(result);
      }
    }
  }
  return propertiesResults;
}

Fixed version (ground truth):
/** 
 * nrousseau Comment method "checkNodePropertiesFromRepository".
 * @param node
 * @return true if the data have been modified
 */
@SuppressWarnings("String_Node_Str") private List<UpdateResult> checkNodePropertiesFromRepository(final Node node,boolean onlySimpleShow){
  if (node == null) {
    return Collections.emptyList();
  }
  List<UpdateResult> propertiesResults=new ArrayList<UpdateResult>();
  String propertyType=(String)node.getPropertyValue(EParameterName.PROPERTY_TYPE.getName());
  if (propertyType != null) {
    if (propertyType.equals(EmfComponent.REPOSITORY)) {
      String propertyValue=(String)node.getPropertyValue(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
      if (node.getComponent().getName().startsWith("String_Node_Str")) {
        if (propertyValue.contains("String_Node_Str")) {
          propertyValue=propertyValue.split("String_Node_Str")[0];
        }
      }
      IRepositoryViewObject lastVersion=UpdateRepositoryUtils.getRepositoryObjectById(propertyValue);
      UpdateCheckResult result=null;
      Connection repositoryConnection=null;
      RulesItem repositoryRulesItem=null;
      LinkRulesItem repositoryLinkRulesItem=null;
      String source=null;
      Item item=null;
      if (lastVersion != null) {
        item=lastVersion.getProperty().getItem();
        if (item != null && item instanceof ConnectionItem) {
          source=UpdateRepositoryUtils.getRepositorySourceName(item);
          repositoryConnection=((ConnectionItem)item).getConnection();
        }
        if (item != null && item instanceof FileItem) {
          if (item instanceof RulesItem) {
            repositoryRulesItem=(RulesItem)item;
          }
        }
        if (item != null && item instanceof LinkRulesItem) {
          repositoryLinkRulesItem=(LinkRulesItem)item;
        }
      }
      if (repositoryConnection != null) {
        boolean sameValues=true;
        boolean isXsdPath=false;
        if (repositoryConnection instanceof XmlFileConnectionImpl) {
          String filePath=((XmlFileConnectionImpl)repositoryConnection).getXmlFilePath();
          if (filePath != null) {
            if (XmlUtil.isXSDFile(filePath)) {
              isXsdPath=true;
            }
          }
        }
        boolean needBuildIn=false;
        if (repositoryConnection instanceof SalesforceSchemaConnection && !((SalesforceSchemaConnection)repositoryConnection).isUseCustomModuleName()) {
          IElementParameter param=node.getElementParameter("String_Node_Str");
          if (param != null) {
            boolean found=false;
            SalesforceSchemaConnection salesforceConnection=(SalesforceSchemaConnection)repositoryConnection;
            List<SalesforceModuleUnit> units=salesforceConnection.getModules();
            for (            SalesforceModuleUnit unit : units) {
              if (unit.getLabel() != null && unit.getLabel().equals(param.getValue())) {
                found=true;
                break;
              }
            }
            if (!found) {
              result=new UpdateCheckResult(node);
              result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
              needBuildIn=true;
            }
          }
        }
        for (        IElementParameter param : node.getElementParameters()) {
          if (needBuildIn) {
            break;
          }
          String repositoryValue=param.getRepositoryValue();
          if ((repositoryValue != null) && (param.isShow(node.getElementParameters()) || (node instanceof INode && ((INode)node).getComponent().getName().equals("String_Node_Str")) || (node instanceof INode && ((INode)node).getComponent().getName().equals("String_Node_Str")))) {
            if ((param.getFieldType().equals(EParameterFieldType.FILE) && isXsdPath) || (repositoryConnection instanceof SalesforceSchemaConnection && "String_Node_Str".equals(repositoryValue) && !((SalesforceSchemaConnection)repositoryConnection).isUseCustomModuleName())) {
              continue;
            }
            IMetadataTable table=null;
            if (!node.getMetadataList().isEmpty()) {
              table=node.getMetadataList().get(0);
            }
            Object objectValue=RepositoryToComponentProperty.getValue(repositoryConnection,repositoryValue,table);
            if (objectValue == null || "String_Node_Str".equals(objectValue)) {
              if (GlobalServiceRegister.getDefault().isServiceRegistered(IESBService.class)) {
                IESBService service=(IESBService)GlobalServiceRegister.getDefault().getService(IESBService.class);
                if (service != null) {
                  objectValue=service.getValue(item,repositoryValue,node);
                }
              }
            }
            if (param.getName().equals(EParameterName.CDC_TYPE_MODE.getName()) && item instanceof DatabaseConnectionItem) {
              if (PluginChecker.isCDCPluginLoaded()) {
                ICDCProviderService service=(ICDCProviderService)GlobalServiceRegister.getDefault().getService(ICDCProviderService.class);
                if (service != null) {
                  try {
                    List<IRepositoryViewObject> all;
                    all=CorePlugin.getDefault().getProxyRepositoryFactory().getAll(ERepositoryObjectType.METADATA_CONNECTIONS);
                    for (                    IRepositoryViewObject obj : all) {
                      Item tempItem=obj.getProperty().getItem();
                      if (tempItem instanceof DatabaseConnectionItem) {
                        String cdcLinkId=service.getCDCConnectionLinkId((DatabaseConnectionItem)tempItem);
                        if (cdcLinkId != null && item.getProperty().getId().equals(cdcLinkId)) {
                          objectValue=RepositoryToComponentProperty.getValue(((DatabaseConnectionItem)tempItem).getConnection(),repositoryValue,node.getMetadataList().get(0));
                          break;
                        }
                      }
                    }
                  }
 catch (                  PersistenceException e) {
                    ExceptionHandler.process(e);
                  }
                }
              }
            }
            Object value=param.getValue();
            if (objectValue != null) {
              if ((param.getFieldType().equals(EParameterFieldType.CLOSED_LIST) && UpdatesConstants.TYPE.equals(param.getRepositoryValue()))) {
                boolean found=false;
                String[] list=param.getListRepositoryItems();
                for (int i=0; (i < list.length) && (!found); i++) {
                  if (objectValue.equals(list[i])) {
                    found=true;
                  }
                }
                if (!found) {
                  sameValues=false;
                }
              }
 else {
                if (param.getFieldType().equals(EParameterFieldType.TABLE)) {
                  List<Map<String,Object>> oldList=(List<Map<String,Object>>)value;
                  String name=param.getName();
                  if ("String_Node_Str".equals(name) || "String_Node_Str".equals(name) || "String_Node_Str".equals(name) && !oldList.isEmpty() && objectValue instanceof List) {
                    List objectList=(List)objectValue;
                    if (oldList.size() != objectList.size()) {
                      sameValues=false;
                    }
 else {
                      for (int i=0; i < oldList.size(); i++) {
                        Map<String,Object> oldMap=oldList.get(i);
                        Map<String,Object> objectMap=(Map<String,Object>)objectList.get(i);
                        if (oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str")) && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str")) && ((oldMap.get("String_Node_Str") == null && objectMap.get("String_Node_Str") == null) || (oldMap.get("String_Node_Str") != null && objectMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))))&& ((oldMap.get("String_Node_Str") == null && objectMap.get("String_Node_Str") == null) || (oldMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str") != null && oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))))) {
                          sameValues=true;
                        }
 else {
                          sameValues=false;
                          break;
                        }
                      }
                    }
                  }
 else                   if (param.getName().equals("String_Node_Str") && oldList != null && objectValue instanceof List) {
                    List repList=(List)objectValue;
                    if (oldList.size() == repList.size()) {
                      for (                      Map<String,Object> line : oldList) {
                        final String sheetName="String_Node_Str";
                        Object oldValue=line.get(sheetName);
                        if (oldValue instanceof String && repList.get(0) instanceof Map) {
                          boolean found=false;
                          for (                          Map map : (List<Map>)repList) {
                            Object repValue=map.get(sheetName);
                            if (oldValue.equals(repValue)) {
                              found=true;
                              break;
                            }
                          }
                          if (!found) {
                            sameValues=false;
                            break;
                          }
                        }
                      }
                    }
 else {
                      sameValues=false;
                    }
                  }
 else                   if (param.getName().equals("String_Node_Str") && oldList != null) {
                    List objectList=(List)objectValue;
                    if (oldList.size() != objectList.size()) {
                      sameValues=false;
                    }
 else {
                      for (int i=0; i < oldList.size(); i++) {
                        Map<String,Object> oldMap=oldList.get(i);
                        Map<String,Object> objectMap=(Map<String,Object>)objectList.get(i);
                        if (oldMap.get("String_Node_Str").equals(objectMap.get("String_Node_Str"))) {
                          sameValues=true;
                        }
 else {
                          sameValues=false;
                          break;
                        }
                      }
                    }
                  }
                }
 else                 if (value instanceof String && objectValue instanceof String) {
                  if (!value.equals("String_Node_Str") && !value.equals(objectValue)) {
                    if (repositoryConnection instanceof XmlFileConnection) {
                      if ((((XmlFileConnection)repositoryConnection).getXmlFilePath().endsWith("String_Node_Str") || ((XmlFileConnection)repositoryConnection).getXmlFilePath().endsWith("String_Node_Str")) && repositoryValue.equals("String_Node_Str")) {
                      }
 else {
                        sameValues=false;
                      }
                    }
 else {
                      sameValues=false;
                    }
                  }
                  if (repositoryValue.equals("String_Node_Str")) {
                    IElementParameter paramEncoding=param.getChildParameters().get(EParameterName.ENCODING_TYPE.getName());
                    if (paramEncoding != null) {
                      if (repositoryConnection instanceof FTPConnection) {
                        if (((FTPConnection)repositoryConnection).getEcoding() != null) {
                          paramEncoding.setValue(((FTPConnection)repositoryConnection).getEcoding());
                        }
 else {
                          paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);
                        }
                      }
 else {
                        paramEncoding.setValue(EmfComponent.ENCODING_TYPE_CUSTOM);
                      }
                    }
                  }
                }
 else                 if (value instanceof Boolean && objectValue instanceof Boolean) {
                  sameValues=((Boolean)value).equals(objectValue);
                }
              }
            }
 else             if (param.getFieldType().equals(EParameterFieldType.TABLE) && UpdatesConstants.XML_MAPPING.equals(repositoryValue)) {
              List<Map<String,Object>> newMaps=RepositoryToComponentProperty.getXMLMappingValue(repositoryConnection,node.getMetadataList());
              if ((value instanceof List) && newMaps != null) {
                List<Map<String,Object>> oldMaps=(List<Map<String,Object>>)value;
                if (oldMaps.size() != newMaps.size()) {
                  sameValues=false;
                  break;
                }
                for (int i=0; i < newMaps.size() && sameValues; i++) {
                  Map<String,Object> newmap=newMaps.get(i);
                  Map<String,Object> oldmap=null;
                  if (i < oldMaps.size()) {
                    oldmap=oldMaps.get(i);
                  }
                  if (oldmap != null && sameValues) {
                    Object o=newmap.get(UpdatesConstants.QUERY);
                    if (o != null) {
                      sameValues=newmap.get(UpdatesConstants.QUERY).equals(oldmap.get(UpdatesConstants.QUERY));
                    }
 else {
                      sameValues=oldmap.get(UpdatesConstants.QUERY) == null;
                    }
                  }
                  if (newmap.get(UpdatesConstants.SCHEMA) != null) {
                    if (!newmap.get(UpdatesConstants.SCHEMA).equals(newmap.get(UpdatesConstants.SCHEMA))) {
                      oldmap=null;
                      for (int j=0; j < oldMaps.size(); j++) {
                        Map<String,Object> m=oldMaps.get(j);
                        if (newmap.get(UpdatesConstants.SCHEMA).equals(m.get(UpdatesConstants.SCHEMA))) {
                          oldmap=m;
                        }
                      }
                    }
                    if (oldmap == null) {
                      sameValues=false;
                    }
 else {
                      Object o=newmap.get(UpdatesConstants.MAPPING);
                      if (o != null) {
                        sameValues=o.equals(oldmap.get(UpdatesConstants.MAPPING));
                      }
 else {
                        sameValues=oldmap.get(UpdatesConstants.MAPPING) == null;
                      }
                    }
                  }
                  if (!sameValues) {
                    break;
                  }
                }
              }
            }
 else             if (param.getFieldType().equals(EParameterFieldType.TABLE) && param.getName().equals("String_Node_Str")) {
              objectValue=RepositoryToComponentProperty.getValue(repositoryConnection,param.getName(),node.getMetadataList().get(0));
              if (value == null) {
                sameValues=false;
                break;
              }
              if (objectValue == null) {
                sameValues=false;
                break;
              }
              List<Map<String,Object>> oldMaps=(List<Map<String,Object>>)value;
              List repList=(List)objectValue;
              if (oldMaps.size() == repList.size()) {
                for (                Map<String,Object> line : oldMaps) {
                  final String sheetName="String_Node_Str";
                  Object oldValue=line.get(sheetName);
                  if (oldValue instanceof String && repList.get(0) instanceof String) {
                    boolean found=false;
                    for (                    String str : (List<String>)repList) {
                      Object repValue=TalendTextUtils.addQuotes(str);
                      if (oldValue.equals(repValue)) {
                        found=true;
                        break;
                      }
                    }
                    if (!found) {
                      sameValues=false;
                      break;
                    }
                  }
                }
              }
 else {
                sameValues=false;
              }
            }
          }
          if (!sameValues) {
            break;
          }
        }
        if (onlySimpleShow || !sameValues) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.UPDATE,repositoryConnection,source);
        }
        for (        IElementParameter param : node.getElementParameters()) {
          String repositoryValue=param.getRepositoryValue();
          if (param.isShow(node.getElementParameters()) && (repositoryValue != null) && (!param.getName().equals(EParameterName.PROPERTY_TYPE.getName()))&& param.getFieldType() != EParameterFieldType.MEMO_SQL && !("String_Node_Str".equals(node.getComponent().getName()) && "String_Node_Str".equals(param.getRepositoryValue())) && !("String_Node_Str".equals(node.getComponent().getName()) && param.getName().equals(UpdatesConstants.MAPPING)) && !("String_Node_Str".equals(node.getComponent().getName()) && "String_Node_Str".equals(repositoryValue))) {
            param.setRepositoryValueUsed(true);
            param.setReadOnly(true);
          }
        }
        List<UpdateResult> contextResults=checkParameterContextMode(node.getElementParameters(),(ConnectionItem)lastVersion.getProperty().getItem(),null);
        if (contextResults != null) {
          propertiesResults.addAll(contextResults);
        }
      }
 else       if (repositoryRulesItem != null) {
        boolean isFindRules=false;
        IElementParameter param=node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
        if (param != null) {
          isFindRules=true;
        }
        if (!isFindRules) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
        }
      }
 else       if (repositoryLinkRulesItem != null) {
        boolean isFindLinkRules=false;
        IElementParameter param=node.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());
        if (param != null) {
          isFindLinkRules=true;
        }
        if (!isFindLinkRules) {
          result=new UpdateCheckResult(node);
          result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
        }
      }
 else {
        result=new UpdateCheckResult(node);
        result.setResult(EUpdateItemType.NODE_PROPERTY,EUpdateResult.BUIL_IN);
      }
      if (result != null) {
        result.setJob(getProcess());
        setConfigrationForReadOnlyJob(result);
        propertiesResults.add(result);
      }
    }
  }
  return propertiesResults;
}