if (forEachElement.hasAttribute("counterName")) {
Variable variable = BPELFactory.eINSTANCE.createVariable();
// TODO: How to facade this ?
variable.setName(forEachElement.getAttribute("counterName"));
QName qName = new QName(XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001, "unsignedInt");
XSDTypeDefinition type = new XSDTypeDefinitionProxy(resource.getURI(), qName);
variable.setType(type);
forEach.setCounterName(variable);
}
// Set startCounterValue element