Classes copied from GMF in order to avoid the dependency between AF3 and the whole GMF framework.