class XMLHelper {

    public void setValue(EObject object, EStructuralFeature feature, Object value, int position) {
        // The underlying GWT implementation for EMF throws an UnsupportedOperationException is some feature validation fails,
        // so do not propagate the exception in that case, otherwise the process will be not loaded at all.
        // Instead, log an error for further fixing.
        try {
            doSetValue(object, feature, value, position);
        } catch (UnsupportedOperationException e) {
            Bpmn2Marshalling.logError("Cannot set the value [" + value + "] for " +
                                              "feature [" + feature.getName() + "] into the " +
                                              "object [" + object + "]",
                                      e);
        }
    }

    public  XMLHelper();
    public  XMLHelper(XMLResource resource);

}