code: private void fireProgressEvent(int state, int progress, String messageKey, RepositoryResource installResource) throws InstallException {
          String resourceName = null;
          if (installResource instanceof EsaResource) {
              EsaResource esar = ((EsaResource) installResource);
              if (esar.getVisibility().equals(Visibility.PUBLIC) || esar.getVisibility().equals(Visibility.INSTALL)) {
                  resourceName = (esar.getShortName() == null) ? installResource.getName() : esar.getShortName();
              } else if (!firePublicAssetOnly && messageKey.equals("STATE_DOWNLOADING")) {
                  messageKey = "STATE_DOWNLOADING_DEPENDENCY";
                  resourceName = "";
              } else {
                  return;
              }
          }
          if (installResource instanceof SampleResource) {
              SampleResource sr = ((SampleResource) installResource);
              resourceName = sr.getShortName() == null ? installResource.getName() : sr.getShortName();
          } else {
              resourceName = installResource.getName();
          }
          fireProgressEvent(state, progress,
                            Messages.INSTALL_KERNEL_MESSAGES.getLogMessage(messageKey, resourceName));
      }
docs: Fires a progress event message to be displayed
  
  @param state the state integer
  @param progress the progress integer
  @param messageKey the message key
  @param installResource the resource necessitating the progress event
  @throws InstallException