public Response getAvailableWidgets(@PathParam("dashboardId") long dashboardId) {
long guestId = AuthHelper.getGuestId();
try {
final List<DashboardWidget> widgetsNotYetInDashboard = new ArrayList<DashboardWidget>();
final List<DashboardWidget> availableWidgetsList = widgetsService.getAvailableWidgetsList(guestId);
final Dashboard dashboard = dashboardsService.getDashboard(guestId, dashboardId);
final String[] dashboardWidgets = StringUtils.split(dashboard.widgetNames, ",");
outerloop: for (DashboardWidget availableWidget : availableWidgetsList) {
for (String dashboardWidgetName : dashboardWidgets) {
if (availableWidget.WidgetName.equals(dashboardWidgetName))
continue outerloop;