Source:
public static void populateServiceSchema(AxisService axisService) throws DataServiceFault { DataService dataservice = (DataService) axisService.getParameter( DBConstants.DATA_SERVICE_OBJECT).getValue(); CommonParams cparams = new CommonParams(axisService, dataservice); List<List<Operation>> allOps = extractOperations(dataservice); List<Operation> normalOperations = allOps.get(0); List<Operation> batchOperations = allOps.get(1); List<List<Resource>> allResources = extractResources(dataservice); List<Resource> normalResources = allResources.get(0); List<Resource> batchResources = allResources.get(1); createAndStoreFaultElement(cparams); createAndStoreRequestStatusElement(cparams); createAndStoreDataServiceResponseElement(cparams); for (Operation normalOp : normalOperations) { processRequest(cparams, normalOp); } for (Operation batchOp : batchOperations) { processRequest(cparams, batchOp); } for (Resource resource : normalResources) { processRequest(cparams, resource); } for (Resource resource : batchResources) { processRequest(cparams, resource); } if (dataservice.isBoxcarringEnabled() && dataservice.isDisableLegacyBoxcarringMode()) { Operation requestBoxOperation = dataservice.getOperation(DBConstants.REQUEST_BOX_ELEMENT); if (requestBoxOperation != null) { processRequestBox(cparams, requestBoxOperation, (List<List<CallableRequest>>)(List<?>)allOps); } ResourceID requestBoxResourceId = new ResourceID(DBConstants.REQUEST_BOX_ELEMENT, HTTPConstants.HTTP_METHOD_POST); Resource requestBoxResource = dataservice.getResource(requestBoxResourceId); if (requestBoxResource != null) { processRequestBox(cparams, requestBoxResource, (List<List<CallableRequest>>)(List<?>)allResources); } } axisService.addSchema(cparams.getSchemaMap().values()); }

Target:
public static void populateServiceSchema(AxisService axisService) throws DataServiceFault { DataService dataservice = (DataService) axisService.getParameter( DBConstants.DATA_SERVICE_OBJECT).getValue(); CommonParams cparams = new CommonParams(axisService, dataservice); List<List<Operation>> allOps = extractOperations(dataservice); List<Operation> normalOperations = allOps.get(0); List<Operation> batchOperations = allOps.get(1); List<List<Resource>> allResources = extractResources(dataservice); List<Resource> normalResources = allResources.get(0); List<Resource> batchResources = allResources.get(1); createAndStoreFaultElement(cparams); createAndStoreRequestStatusElement(cparams); createAndStoreDataServiceResponseElement(cparams); for (Operation normalOp : normalOperations) { processRequest(cparams, normalOp); } for (Operation batchOp : batchOperations) { processRequest(cparams, batchOp); } for (Resource resource : normalResources) { processRequest(cparams, resource); } for (Resource resource : batchResources) { processRequest(cparams, resource); } if (dataservice.isBoxcarringEnabled()) { Operation requestBoxOperation = dataservice.getOperation(DBConstants.REQUEST_BOX_ELEMENT); if (requestBoxOperation != null) { processRequestBox(cparams, requestBoxOperation, (List<List<CallableRequest>>)(List<?>)allOps); } ResourceID requestBoxResourceId = new ResourceID(DBConstants.REQUEST_BOX_ELEMENT, HTTPConstants.HTTP_METHOD_POST); Resource requestBoxResource = dataservice.getResource(requestBoxResourceId); if (requestBoxResource != null) { processRequestBox(cparams, requestBoxResource, (List<List<CallableRequest>>)(List<?>)allResources); } } axisService.addSchema(cparams.getSchemaMap().values()); }