*
* @throws JspException if the parameters of this tags are wrong
*/
public int doStartTag() throws JspException {
if (Config.getInstance().isEnabled()) {
NavigationContext navigationContext = NavigationContextFactory.getInstance();
navigationContext.setWebflowName(name);
if ((forcePrevious != null) && (forcePrevious.trim().length() > 0)) {
navigationContext.setPreviousWebflowToForce(forcePrevious);
}
int ownership = 0;
if ((owner != null) && (owner.length() > 0)) {
ownership = StringUtils.findIgnoreCase(owner, NavigationManager.OWNERSHIP_DESC);
if (ownership < 0) {
throw new JspException("The ownership must be included in " +
Arrays.asList(NavigationManager.OWNERSHIP_DESC).toString());
}
} else {
ownership = Config.getInstance().getDefaultOwnership();
}
navigationContext.setDefaultOwnership(ownership);
}
return SKIP_BODY;
}