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