private void watchForChanges(final List<IResourceStream> resourceStreams) {
// Watch file in the future
final IModificationWatcher watcher = Application.get().getResourceSettings().getResourceWatcher(true);
if (watcher != null) {
final IChangeListener listener = new IChangeListener() {
@Override
public void onChange() {
log.info("merged resource has changed");
synchronized (MergedResourceStream.this) {
for (final IResourceStream resourceStream : resourceStreams) {