code: private void setAppAndComponentNameToDashboard(Dashboard dashboard, String appName, String compName) {
          if(appName != null && !"".equals(appName)){
  
              Cmdb cmdb =  cmdbService.configurationItemByConfigurationItem(appName);
              if(cmdb !=null) {
                  dashboard.setConfigurationItemBusServName(cmdb.getConfigurationItem());
                  dashboard.setValidServiceName(cmdb.isValidConfigItem());
              }
          }
          if(compName != null && !"".equals(compName)){
              Cmdb cmdb = cmdbService.configurationItemByConfigurationItem(compName);
              if(cmdb !=null) {
                  dashboard.setConfigurationItemBusAppName(cmdb.getConfigurationItem());
                  dashboard.setValidAppName(cmdb.isValidConfigItem());
              }
          }
      }
docs: Sets business service, business application and valid flag for each to the give Dashboard
  @param dashboard
  @param appName
  @param compName