Refactored so the Jersey resource classes aren't hardcoded in the pipeline factory.