CDE-1663 -- define generics type variable to allow different representations of a priam instnace