public static String refreshComponent(WebContext context, HttpServletRequest request,
String dashboardId, String componentId){
DashboardConfig dashboardConfig = DashboardRepository.getInstance().get(dashboardId);
DashboardContext dashboardContext = new DashboardContextImpl(context, dashboardConfig,
request, true); // set the refresh request
assert dashboardConfig != null : "Error retrieving dashboard details. id=" + dashboardId;
DashboardComponent component = dashboardConfig.getComponents().get(componentId);
assert component != null : "Error retrieving component. id=" + componentId;
try{