// Retrieve the plugins.
final SortedSet<PluginArtifact> plugins = artifacts.find(PluginArtifact.class);
// Retrieve the compilation.
final CompilationResult compilation = findCompilation(logger, artifacts);
String backgroundPageFileName = getJsFilename(context);
return addArtifacts(artifacts, emitString(logger, generateJsContents(
logger, compilation), backgroundPageFileName), emitString(logger,
generateManifestContents(logger, backgroundPageFileName, extension,