/**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  */
 public DataType getMappedData(FormalParameterType formalParameter) {
   if (formalParameter != null && formalParameter.getId() != null) {
     for (FormalParameterMappingType parameterMapping : getMapping()) {
       FormalParameterType parameter = parameterMapping.getParameter();
       if (parameter != null && formalParameter.getId().equals(parameter.getId())) {
         return parameterMapping.getData();
       }
     }
   }
   return null;
 }
  /**
   *
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   */
  public void setMappedData(FormalParameterType formalParameter, DataType data) {
    if (formalParameter == null) {
      return;
    }
    for (FormalParameterMappingType parameterMapping : getMapping()) {
      if (formalParameter.getId().equals(parameterMapping.getParameter().getId())) {
        if (data == null) {
          getMapping().remove(parameterMapping);
        } else {
          parameterMapping.setData(data);
        }
        return;
      }
    }

    FormalParameterMappingType mapping =
        ExtensionsFactory.eINSTANCE.createFormalParameterMappingType();
    mapping.setData(data);
    mapping.setParameter(formalParameter);
    getMapping().add(mapping);
  }