private Set<String> resourceDirs = new HashSet<String>();
@Override
public void init(final ServletConfig servletConfig) throws ServletException {
super.init(servletConfig);
final TobagoConfig tobagoConfig = TobagoConfig.getInstance(servletConfig.getServletContext());
if (tobagoConfig != null && tobagoConfig.getProjectStage() == ProjectStage.Production) {
expires = 24 * 60 * 60 * 1000L;
}
final Theme defaultTheme = tobagoConfig.getDefaultTheme();
addResourceDir(defaultTheme.getFallbackList());
addResourceDir(tobagoConfig.getSupportedThemes());
final String expiresString = servletConfig.getInitParameter("expires");
if (expiresString != null) {
try {
expires = new Long(expiresString) * 1000;