this.parameters = parameters;
this.request = ObjectModelHelper.getRequest(objectModel);
this.copletInstanceData = getInstanceData(this.manager, objectModel, parameters);
final CopletData copletData = this.copletInstanceData.getCopletData();
this.link = (String) this.copletInstanceData.getTemporaryAttribute(LINK);
this.documentBase = (String) this.copletInstanceData.getAttribute(DOCUMENT_BASE);
if (this.link == null) {
final String startURI = (String)copletData.getAttribute(START_URI);
this.link = this.imHelper.resolve(startURI);
}
if (documentBase == null) {
this.documentBase = this.link.substring(0, this.link.lastIndexOf('/') + 1);
copletInstanceData.setAttribute(DOCUMENT_BASE, this.documentBase);
}
this.configuredEncoding = encodingConstantFromString((String)copletData.getAttribute("encoding"));
this.userAgent = (String)copletData.getAttribute("user-agent");
this.envelopeTag = parameters.getParameter(ENVELOPE_TAG_PARAMETER, this.defaultEnvelopeTag);
if (envelopeTag == null) {
throw new ProcessingException("Can not initialize ProxyTransformer - sitemap parameter 'envelope-tag' missing");
}