private void initializeContainer() {
    outputdataContainer = new IODataComponentContainer();
    for (Connection connec : (List<Connection>) node.getIncomingConnections()) {
      if (connec.getLineStyle().equals(EConnectionType.FLOW_MAIN)) {
        IODataComponent input = null;
        if (newInputMetadata == null) {
          input = new IODataComponent(connec);
        } else {
          if (connec.getMetaName().equals(newInputMetadata.getTableName())) {
            input = new IODataComponent(connec, newInputMetadata);
          }
        }
        if (input != null) {
          outputdataContainer.getInputs().add(input);
        }
      }
    }
    for (Connection connec : (List<Connection>) node.getOutgoingConnections()) {
      if (connec.getLineStyle().equals(EConnectionType.FLOW_MAIN)
          || isinputContainerOutput(connec)
          || ((connec.getLineStyle().equals(EConnectionType.FLOW_MERGE)
              && (connec.getInputId() == 1)))) {
        if ((!connec.getSource().getConnectorFromType(connec.getLineStyle()).isMultiSchema())
            || (connec.getMetaName().equals(newOutputMetadata.getTableName()))) {
          IODataComponent output = new IODataComponent(connec, newOutputMetadata);
          outputdataContainer.getOuputs().add(output);
        }
      }
    }

    if (inputNode != null) {
      inputdataContainer = new IODataComponentContainer();
      for (Connection connec : (List<Connection>) inputNode.getOutgoingConnections()) {
        if (connec.getTarget().equals(node)) {
          if ((!connec.getSource().getConnectorFromType(connec.getLineStyle()).isMultiSchema())
              || (connec.getMetaName().equals(newInputMetadata.getTableName()))) {
            IODataComponent output = new IODataComponent(connec, newInputMetadata);
            inputdataContainer.getOuputs().add(output);
          }
        }
      }
    }
  }
 private boolean isinputContainerOutput(Connection connec) {
   boolean isREF = connec.getLineStyle().equals(EConnectionType.FLOW_REF);
   if (isREF && (connec.getTarget().getOutgoingConnections().size() == 1)) {
     if (connec
         .getTarget()
         .getOutgoingConnections()
         .get(0)
         .getLineStyle()
         .equals(EConnectionType.FLOW_REF)) {
       return true;
     }
   }
   return false;
 }
 private boolean conSchema() {
   Connection connection = (Connection) elem;
   return connection.getLineStyle().hasConnectionCategory(IConnectionCategory.DATA);
 }
 private boolean conIf() {
   Connection connection = (Connection) elem;
   return connection.getLineStyle() == EConnectionType.RUN_IF
       || connection.getLineStyle() == EConnectionType.ROUTE_WHEN;
 }