private void initializeWebRtcMediaServices(ServletContext sc)
throws ServletException {
for (String wh : findServices(WebRtcContentHandler.class,
WebRtcContentService.class)) {
try {
WebRtcContentService mediaService = Class.forName(wh)
.getAnnotation(WebRtcContentService.class);
if (mediaService != null) {
String name = mediaService.name().isEmpty() ? wh
: mediaService.name();
String path = mediaService.path();
log.debug("Registering WebRtcContentHandler with name "
+ name + " at path " + path);
ServletRegistration.Dynamic sr = sc.addServlet(name,
WebRtcMediaHandlerServlet.class);
sr.addMapping(path);