String scriptText = source.getText();
String scriptName = source.getClassName();
CachePropertiesHandler.CacheState cacheState = cachePropertiesHandler.getCacheState(scriptText, scriptCacheDir);
if (cacheState == CachePropertiesHandler.CacheState.INVALID) {
return null;
<BUG>}
if (!hasCompiledClasses(scriptCacheDir)) {
return new EmptyScript();</BUG>
}
Clock clock = new Clock();

String scriptText = source.getText();
String scriptName = source.getClassName();
CachePropertiesHandler.CacheState cacheState = cachePropertiesHandler.getCacheState(scriptText, scriptCacheDir);
if (cacheState == CachePropertiesHandler.CacheState.INVALID) {
return null;
}
Clock clock = new Clock();
