Hi,<br><br>I am looking at some examples, and seeing two different ways of creating SAML object. I want to know which is better?<br><br>One:<br><br>XMLObjectBuilderFactory builderFactory = org.opensaml.Configuration.getBuilderFactory();<br>

AuthnRequestBuilder arb = (AuthnRequestBuilder) builderFactory.getBuilder( AuthnRequest.DEFAULT_ELEMENT_NAME );<br>AuthnRequest auth = (AuthnRequest) arb.buildObject();<br><br><br>Another:<br><br>AuthnRequest arb = (new AuthnRequestBuilder()).buildObject();<br>

<br>One is using factory to get the builder, and the other is just create a new builder. I am not sure about the implementation. So I want to know which is better?<br><br>Is the first one faster? Do we recommend using the second one?<br>

<br><br>Thanks,<br clear="all">Yaowen<br>