throw new IllegalArgumentException("The extension " + target.getInterface() + "has no mapping.");
}
if (registry.getExtension(target.getName()) != null) {
return;
}
JavaScriptPageExtension extension = new JavaScriptPageExtension(target.getInterface());
registry.register(extension);
for (JSInterface dependency: target.getJSInterfaceDependencies()) {
registerExtension(registry, dependency);
}
}