com.atlassian.confluence.api.service.finder.SingleFetcher is not visible from class loader

I am currently writing a plugin, and my servlet is throwing the above exception.

The identical code works for my REST endpoint.

Any ideas? Should I call my REST endpoint from my servlet?