}
public Plugin add(String fileName, byte[] data) throws CrawljaxWebException {
int extensionIndex = fileName.indexOf(".jar");
if (extensionIndex < 0) {
throw new CrawljaxWebException("Expected .jar file");
}
String id = adaptToId(fileName.substring(0, extensionIndex));
Plugin plugin = pluginManager.save(id, data);
if(plugin != null) {
pluginList.put(plugin.getId(), plugin);