obj.put("error", e.toString());
obj.put("plugins", new JSONObject(jaxbJsonMarshaller.marshal(speakeasyService.getRemotePluginList(user))));
}
catch (JSONException e1)
{
throw new PluginOperationFailedException("Unable to serialize error", e1, null);
}
catch (UnauthorizedAccessException e1)
{
throw new PluginOperationFailedException("Unauthorized access", e1, null);
}
return obj.toString();
}