code: protected void copyClasspathResource(File outputDirectory,
                                           String resourceName,
                                           String targetFileName) throws IOException
      {
          String resourcePath = classpathPrefix + resourceName;
          InputStream resourceStream = getClass().getClassLoader().getResourceAsStream(resourcePath);
          copyStream(outputDirectory, resourceStream, targetFileName);
      }
docs: Copy a single named resource from the classpath to the output directory.
  @param outputDirectory The destination directory for the copied resource.
  @param resourceName The filename of the resource.
  @param targetFileName The name of the file created in {@literal outputDirectory}.
  @throws IOException If the resource cannot be copied.