throw new ExtensionException(ExtensionException.CANNOT_REPLACE_DEV_EXTENSION, bundle.getId());
}
bundle.setCategory(ExtensionStore.INSTALLED_CATEGORY);
try {
ExtensionBundleStatus extensionStatus = ExtensionStoreStatusManager.getExtensionStatus(bundle.getId());
bundle.setStatus(extensionStatus);
} catch (IOException ioe) {
throw new ExtensionException(ExtensionException.INTERNAL_ERROR, ioe, "Failed to add bundle.");
}