@Override public String toString() { return String.format("LocalContent[%s]\n", getLocalizedRefString()); } }
/** * Get a reference to the local copy of the referenced object in the constructed * spec. * <p> * Obtaining a localized reference has the side-effect of retaining the object * in the constructed spec. */ public Reference getLocalizedRef(Reference ref) { LocalContent localContent = localContentItems.get(ref); if (localContent != null) { localContent.retain(); return new Reference(localContent.getLocalizedRefString(), modelVersion); } else { return ref.getBadRef(); } }