* @param rowNumbers row indexes related to the new rows to save
* @param newValueObjects list of new value objects to save
* @return an ErrorResponse value object in case of errors, VOListResponse if the operation is successfully completed
*/
public Response insertRecords(int[] rowNumbers, ArrayList newValueObjects) throws Exception {
HierarCustomerDiscountVO vo = null;
DefaultMutableTreeNode node = frame.getHierarTreePanel().getSelectedNode();
CompanyHierarchyLevelVO levelVO = (CompanyHierarchyLevelVO)node.getUserObject();
CompanyHierarchyLevelVO root = (CompanyHierarchyLevelVO)((DefaultMutableTreeNode)node.getRoot()).getUserObject();
Response response = null;
for(int i=0;i<newValueObjects.size();i++) {
vo = (HierarCustomerDiscountVO)newValueObjects.get(i);
vo.setCompanyCodeSys01SAL03(levelVO.getCompanySys01HIE01());
vo.setProgressiveHie01SAL10(levelVO.getProgressiveHIE01());
response = validateDiscount(vo);
if (response.isError())
return response;
}