class ClassPathStaticResourceHandler extends StaticResourceHandler {

  protected Part findResource(String path) throws IOException {
    URL url = this.getClass().getClassLoader().getResource(path);
    if (url == null) {
      return null;
    }

    return new InputStreamPart(null, url.openStream()).setSubmittedFileName(path);
  }

}