crowdConfigContext
.setConfigLocations(new String[] { "classpath:/applicationContext-CrowdClient.xml" });
crowdConfigContext.refresh();
// load the Hudson-Crowd configuration from Crowd.groovy
BeanBuilder builder = new BeanBuilder(crowdConfigContext, getClass().getClassLoader());
Binding binding = new Binding();
builder.parse(getClass().getResourceAsStream("Crowd.groovy"), binding);
WebApplicationContext context = builder.createApplicationContext();
// configure the ClientProperties object
if (applicationName != null || applicationPassword != null || url != null) {
Properties props = new Properties();
props.setProperty("application.name", applicationName);