/** * Convenience constructor for when you know the prefix and/or id * * @param prefix the entity prefix * @param id the local entity id (can be empty string if there is no id) */ public EntityReference(String prefix, String id) { // OVERRIDE THIS when creating your own EntityReference this(); checkPrefixId(prefix, id); this.prefix = prefix; if ("".equals(id)) { id = null; } this.entityId = id; empty = false; }