for (Object s : services) {
Class<?> clazz = s.getClass();
String rootPathValue = getPath(clazz.getAnnotation(Path.class));
if (requestPath.startsWith(rootPathValue)) {
SwaggerAPI apiDocs = createDocumentationFor(baseURL, s);
writeAsJSON(resp, apiDocs);
responseWritten = true;
}