@Override
	public synchronized void rebuildDirtyBundles() {

		if (LOGGER.isDebugEnabled()) {
			LOGGER.debug("Rebuild dirty bundles");
		}

		StopWatch stopWatch = new StopWatch();
		ThreadLocalJawrContext.setStopWatch(stopWatch);

		// Initialize the Thread local for the Jawr context
		ThreadLocalJawrContext.setJawrConfigMgrObjectName(JmxUtils.getMBeanObjectName(servletContext, resourceType,
				jawrConfig.getProperty(JawrConstant.JAWR_JMX_MBEAN_PREFIX)));

		try {
			if (bundlesHandler != null) {
				bundlesHandler.rebuildModifiedBundles();
			}

			if (LOGGER.isDebugEnabled()) {
				LOGGER.debug("Jawr configuration successfully reloaded. ");
			}
			if (PERF_PROCESSING_LOGGER.isDebugEnabled()) {
				PERF_PROCESSING_LOGGER.debug(stopWatch.prettyPrint());
			}

		} catch (InterruptBundlingProcessException e) {
			if (LOGGER.isInfoEnabled()) {
				LOGGER.info("Bundling processed stopped");
			}
		} catch (Exception e) {
			throw new BundlingProcessException("Error while rebuilding dirty bundles : " + e.getMessage(), e);

		} finally {

			// Reset the Thread local for the Jawr context
			ThreadLocalJawrContext.reset();
		}
	}
@ Override public synchronized void rebuildDirtyBundles ( ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Rebuild dirty bundles" ) ; } StopWatch stopWatch = new StopWatch ( ) ; ThreadLocalJawrContext . setStopWatch ( stopWatch ) ; ThreadLocalJawrContext . setJawrConfigMgrObjectName ( JmxUtils . getMBeanObjectName ( servletContext , resourceType , jawrConfig . getProperty ( JawrConstant . JAWR_JMX_MBEAN_PREFIX ) ) ) ; try { if ( bundlesHandler != null ) { bundlesHandler . rebuildModifiedBundles ( ) ; } if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Jawr configuration successfully reloaded. " ) ; } if ( PERF_PROCESSING_LOGGER . isDebugEnabled ( ) ) { PERF_PROCESSING_LOGGER . debug ( stopWatch . prettyPrint ( ) ) ; } } catch ( InterruptBundlingProcessException e ) { if ( LOGGER . isInfoEnabled ( ) ) { LOGGER . info ( "Bundling processed stopped" ) ; } } catch ( Exception e ) { throw new BundlingProcessException ( "Error while rebuilding dirty bundles : " + e . getMessage ( ) , e ) ; } finally { ThreadLocalJawrContext . reset ( ) ; } }
Refresh the dirty bundles