return Response.serverError().entity("Failed to get dashboards: " + e.getMessage()).build();
}
}
private DashboardModel toDashboardModel(final Dashboard dashboard, long guestId) {
DashboardModel dashboardModel = new DashboardModel();
dashboardModel.id = dashboard.getId();
dashboardModel.name = dashboard.name;
dashboardModel.active = dashboard.active;
final List<DashboardWidget> availableWidgetsList = widgetsService.getAvailableWidgetsList(guestId);
final String[] widgetNames = StringUtils.split(dashboard.widgetNames, ",");