public Map act(Redirector redirector, SourceResolver sourceResolver, Map objectModel,
String source, Parameters parameters) throws Exception {
ServiceSelector selector = null;
AccessControllerResolver resolver = null;
AccessController accessController = null;
Request request = ObjectModelHelper.getRequest(objectModel);
if (!request.isSecure()) {
try {
selector = (ServiceSelector) this.manager.lookup(AccessControllerResolver.ROLE
+ "Selector");
resolver = (AccessControllerResolver) selector
.select(AccessControllerResolver.DEFAULT_RESOLVER);
String url = ServletHelper.getWebappURI(request);
accessController = resolver.resolveAccessController(url);
if (accessController != null) {
PolicyManager policyManager = accessController.getPolicyManager();
Policy policy = policyManager.getPolicy(accessController.getAccreditableManager(),
url);
if (policy.isSSLProtected()) {
Session session = RepositoryUtil.getSession(this.manager, request);
LinkRewriter rewriter = new OutgoingLinkRewriter(this.manager, session, url,
false, true, false);