}
public XRD execute(Store store, XRD xrd, XRISegment segment, Authority parentAuthority, String subSegmentName, Authority authority, boolean isCreate) throws StageException {
if (! (store instanceof StoreBetterLookup)) throw new StageException("Cannot use this store implementation.");
StoreBetterLookup storeBetterLookup = (StoreBetterLookup) store;
if (parentAuthority == null) return(xrd);
// get all subsegments with the given parent authority and authority
SubSegment[] localSubSegments;
try {
localSubSegments = storeBetterLookup.getSynonymSubSegments(parentAuthority, authority);
} catch (StoreException ex) {
throw new StageException("Cannot access store.", ex);
}