Remove unneeded @SuppressWarnings("unchecked")
Add generic parameters to Collections
Fix warnings in ServiceProxy
Use PersistentClass.getOptimisticLockStyle() instead of deprecated Persistent.getOptimisticLockMode()