code: private List<Dashboard> _getDashboardsByOwner(String dashboardName, PrincipalUser owner, boolean populateMetaFieldsOnly, String version) {
  
  		List<Dashboard> result = new ArrayList<>();
  
  		if (dashboardName != null && !dashboardName.isEmpty()) {
  			Dashboard dashboard = dService.findDashboardByNameAndOwner(dashboardName, owner);
  			if (dashboard == null) {
  				throw new WebApplicationException(Response.Status.NOT_FOUND.getReasonPhrase(), Response.Status.NOT_FOUND);
  			}
  
  			result.add(dashboard);
  		} else {
  			if(owner.isPrivileged()) {
  				result = populateMetaFieldsOnly ? dService.findDashboards(null, true, version) : dService.findDashboards(null, false, version);
  			} else {
  				result = populateMetaFieldsOnly ? dService.findDashboardsByOwner(owner, true, version) : dService.findDashboardsByOwner(owner, false, version);
  			}
  		}
  
  		return result;
  	}
docs: Return all dashboard objects filtered by owner.
  @param   dashboardName  				The dashboard name filter.
  @param   owner          				The principlaUser owner for owner name filter.
  @param	populateMetaFieldsOnly		The flag to determine if only meta fields should be populated.
  @param   version                     The version of the dashboard to return. It is either null or not empty
  
  @return  The list of filtered alerts in alert object.