public ILink constructLink(IEngineService service, boolean post, Map parameters,
boolean stateful)
{
finalizeParameters(service, parameters);
IEngine engine = _requestCycle.getEngine();
ServiceEncoding serviceEncoding = createServiceEncoding(parameters);
// Give persistent property strategies a chance to store extra data
// into the link.
if (stateful)
_persistenceStrategySource.addParametersForPersistentProperties(serviceEncoding, post);
String fullServletPath = _contextPath + serviceEncoding.getServletPath();
return new EngineServiceLink(_requestCycle, fullServletPath, engine.getOutputEncoding(),
_codec, _request, parameters, stateful);
}