Fixing problem related to generics usage, fixed bug in
PersistenceService