/** * Constructor which takes an entity reference, * this is the most common way to construct an entity reference object * * @param reference a globally unique reference to an entity, * consists of the entity prefix and optional path segments */ public EntityReference(String reference) { // OVERRIDE THIS when creating your own EntityReference this(); checkReference(reference); this.originalReference = reference; this.prefix = findPrefix(reference); this.entityId = findId(reference); empty = false; }