Removed unnecessary cast
Switched WebSphere repository model to Java 6
We no longer need this code inside WebSphere (which uses an ancient EMF
version).