// Create MediaAgent request based on old-style transcoder URI.
Request request = pageContext.getMediaAgentRequestFactory()
.createRequestFromICSURI(uri);
setHostAndPort(request, uri);
// Create MediaAgent response callback.
MAPResponseCallback callback = new MAPResponseCallbackXDIME2(
objectAttribute,
MAPResponseCallback.createURLRewriter(pageContext, PageURLType.OBJECT));
// Send MediaAgent request.
MediaAgent mediaAgent = pageContext.getMediaAgent(true);