@@ -0,0 +1,1218 @@
+/**%0A * This Source Code Form is subject to the terms of the Mozilla Public License,%0A * v. 2.0. If a copy of the MPL was not distributed with this file, You can%0A * obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under%0A * the terms of the Healthcare Disclaimer located at http://openmrs.org/license.%0A * %3Cp%3E%0A * Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS%0A * graphic logo is a trademark of OpenMRS Inc.%0A */%0Apackage org.openmrs.web;%0A%0Aimport javax.servlet.ServletContext;%0Aimport javax.servlet.ServletRegistration;%0A%0Aimport org.springframework.stereotype.Component;%0Aimport org.springframework.web.context.ServletContextAware;%0A%0A@Component%0Apublic class WebComponentRegistrar implements ServletContextAware %7B%0A%0A    @Override%0A    public void setServletContext(ServletContext servletContext) %7B%0A        ServletRegistration openmrsServletReg = servletContext.getServletRegistration(%22openmrs%22);%0A        addMappings(openmrsServletReg, %22*.htm%22, %22*.form%22, %22*.list%22, %22*.json%22, %22*.field%22, %22*.portlet%22);%0A    %7D%0A%0A    private void addMappings(ServletRegistration reg, String... mappings) %7B%0A        for (String mapping : mappings) %7B%0A            reg.addMapping(mapping);%0A        %7D%0A    %7D%0A%0A%7D%0A

Move mappings for the dispatcher servlet - LUI-40