try {
URI absoluteURI = new URI(pageContext.getAbsoluteURL(
new MarinerURL(objectAttribute.getSrc()), true).toExternalForm());
// use resovled absolute uri from now on
RequestFactory factory = pageContext.getMediaAgentRequestFactory();
Request request = factory.createRequest(
objectAttribute.getSrcType(), absoluteURI, inputParameters);
MAPResponseCallback callback =
new MAPResponseCallbackXDIME2(objectAttribute,
MAPResponseCallback.createURLRewriter(pageContext, PageURLType.OBJECT));