@@ -0,0 +1,1445 @@
+/*%0A * The contents of this file are subject to the OpenMRS Public License%0A * Version 1.1 (the %22License%22); you may not use this file except in%0A * compliance with the License. You may obtain a copy of the License at%0A * http://license.openmrs.org%0A *%0A * Software distributed under the License is distributed on an %22AS IS%22%0A * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the%0A * License for the specific language governing rights and limitations%0A * under the License.%0A *%0A * Copyright (C) OpenMRS, LLC.  All Rights Reserved.%0A */%0Apackage org.openmrs.module.openhmis.backboneforms.web.controller;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0Aimport java.util.Set;%0Aimport java.util.TreeSet;%0A%0Aimport org.openmrs.web.taglib.fieldgen.FieldGenHandlerFactory;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0A@Controller%0A@RequestMapping(value = %22/fieldgenhandlers.json%22)%0Apublic class FieldGenHandlerController %7B%0A%09@RequestMapping(method = RequestMethod.GET)%0A%09@ResponseBody%0A%09public Map%3CString, Set%3CString%3E%3E fieldgenhandlers() %7B%0A%09%09Map%3CString, Set%3CString%3E%3E container = new HashMap%3CString, Set%3CString%3E%3E();%0A%09%09container.put(%22results%22, new TreeSet%3CString%3E(FieldGenHandlerFactory.getSingletonInstance().getHandlers().keySet()));%0A%09%09return container;%0A%09%7D%0A%7D%0A

Move this out of Cashier