code: public ClassNotFoundException toClassNotFoundException() {
          ClassDescriptor classDescriptor = DescriptorFactory.createClassDescriptorFromResourceName(resourceName);
          return new ClassNotFoundException("ResourceNotFoundException while looking for class "
                  + classDescriptor.toDottedClassName() + ": " + getMessage());
      }
docs: Convert this exception to a ClassNotFoundException. This method should
  only be called if the ResourceNotFoundException occurs while looking for
  a class. The message format is parseable by ClassNotFoundExceptionParser.