for (Class<? extends Application> clazz : applicationClasses) {
if (clazz.getName().equalsIgnoreCase(parm.getParamValue().trim())) {
applicationClass = clazz;
Class<?> servletClass = null;
try {
servletClass = bundleClassLoader.loadClass(servlet.getServletClass());
} catch (ClassNotFoundException e) {
log.warn("failed to load servlet class:" + servlet.getServletClass());
}
if ((servletClass == null) || !servletClass.isAssignableFrom(HttpServlet.class)) {
servlet.setServletClass(REST_SERVLET_NAME);