Fixed ClassCastEx that occurs when using EMF in a Extension and the "same" extension relam is created twice in a build