restrict to classes that are PersistenceCapable