ArrayList<String> configLocations = new ArrayList<String>();
configLocations.add("org/geomajas/spring/geomajasContext.xml");
configLocations.addAll(Arrays.asList(request.getConfigLocations()));
try {
rollback.refresh(configLocations.toArray(new String[configLocations.size()]));
} catch (GeomajasException e) {
log.error("Could not refresh context", e);
rollback.rollback();
response.setApplicationNames(context.getBeanNamesForType(ClientApplicationInfo.class));
throw e;