private Expression createExpression(final Data d) {
   final Expression exp = ExpressionFactory.eINSTANCE.createExpression();
   exp.setType(ExpressionConstants.VARIABLE_TYPE);
   exp.setContent(d.getName());
   exp.setName(d.getName());
   exp.setReturnType(org.bonitasoft.studio.common.DataUtil.getTechnicalTypeFor(d));
   exp.getReferencedElements().add(ExpressionHelper.createDependencyFromEObject(d));
   return exp;
 }
 private void addInputDependency(
     final ContractInput input, final Expression groovyScriptExpression) {
   groovyScriptExpression
       .getReferencedElements()
       .add(ExpressionHelper.createDependencyFromEObject(rootInput(input)));
 }