engine.setCodeLayersBySource(sourcesLayers);
lastUpdateException = null;
} catch (CompileException e) {
lastUpdateException = e;
} catch (Exception e) {
lastUpdateException = new GrengineException("Failed to update Grengine.", e);
}
lastChecked = System.currentTimeMillis();
if (updateExceptionNotifier != null) {
updateExceptionNotifier.notify(lastUpdateException);
}