/** Gets a reference to the default configuration, which can be used for simple testing. */
public static synchronized Configuration getDefaultConfiguration() {
if (configuration == null) {
Configuration configuration = new DefaultConfiguration();
MockFilterConfig filterConfig = new MockFilterConfig();
filterConfig.addAllInitParameters(getDefaultFilterParams());
MockServletContext mockServletContext = createServletContext();
try {
filterConfig.setServletContext(mockServletContext);
configuration.setBootstrapPropertyResolver(new BootstrapPropertyResolver(filterConfig));
configuration.init();
StripesTestFixture.configuration = configuration;
} finally {
mockServletContext.close();