return new JsonMessage(new JSONObject()
.put("message", "osgi.container.control-panel.bundle-install is disabled"),
HttpServletResponse.SC_FORBIDDEN);
} else {
if (JAR_MIME_TYPE.equalsIgnoreCase(contentType) == false) {
throw new WebScriptException(HttpServletResponse.SC_BAD_REQUEST,
String.format("Can only accept content of type '%s'.", JAR_MIME_TYPE));
}
try {
final Bundle bundle = bundleHelper.installBundleInRepository(content);
return new JsonMessage(