public static Action createSamlAction(ActionBean actionBean) {
if (actionElementBuilder == null) {
actionElementBuilder = (SAMLObjectBuilder<Action>)
builderFactory.getBuilder(Action.DEFAULT_ELEMENT_NAME);
}
Action actionElement = actionElementBuilder.buildObject();
actionElement.setNamespace(actionBean.getActionNamespace());
if (actionBean.getActionNamespace() == null) {
actionElement.setNamespace("urn:oasis:names:tc:SAML:1.0:action:rwedc-negation");
}
actionElement.setAction(actionBean.getContents());
return actionElement;
}