Update construction of object in context URL to use self.pid rather than exemplar.pid