Using EMF-generated classes