DATACMNS-345 - Use the actual type of the persistent property.

Changed getPersistentEntity(..) to return the actual type of the persistent property in order to deal with generic collection types.