code: protected boolean transform(IResource resource) throws Exception {
          String name = StringUtils.trimToEmpty(resource.getSourcePath());
          
          if (resource.isDirectory() || mojo.isExcluded(name)) {
              return false;
          }
          
          AbstractTransform transform = getTransform(name);
          String targetPath = transform == null ? null : transform.getTargetPath(resource);
          
          if (targetPath != null) {
              File out = mojo.newStagingFile(relocateResource(targetPath), resource.getTime());
              try (OutputStream outputStream = new FileOutputStream(out);) {
                  transform.transform(resource, outputStream);
                  return true;
              }
          }
          
          return false;
      }
docs: Finds and executes the transform appropriate for the file resource.
  
  @param resource The file resource.
  @return True if a processor was found for the jar entry.
  @throws Exception Unspecified exception.