Refs by links: Implemented refs as links for EntityWithSources

The exception message should be less specific :-)