String maxScopesParameter = portletContext.getInitParameter(Bridge.MAX_MANAGED_REQUEST_SCOPES);
if (null != maxScopesParameter) {
numberOfRequestScopes = Integer.parseInt(maxScopesParameter);
}
FacesConfig facesConfig = new FacesConfig();
facesConfig.parse(portletContext);
excluded = facesConfig.getExcludedAttributes();
if (null != excluded) {
for (String name : excluded) {
excludedAttributes.add(new ExcludedRequestAttribute(name));
}
}
publicParameterMapping = facesConfig.getParameterMapping();
// Get preserve action parameters flag
Boolean preserveParams = (Boolean) portletContext
.getAttribute(bridgeParametersPrefix
+ Bridge.PRESERVE_ACTION_PARAMS);
this.preserveActionParams = Boolean.TRUE.equals(preserveParams);