try {
CustomizedWindows cust = ((JAIOUserSessionParameters)userSessionPars).getCustomizedWindows();
ArrayList customizedFields = cust.getCustomizedFields(new BigDecimal(662));
// retrieve internationalization settings (Resources object)...
ServerResourcesFactory factory = (ServerResourcesFactory)context.getAttribute(Controller.RESOURCES_FACTORY);
String serverLanguageId = ((JAIOUserSessionParameters)userSessionPars).getServerLanguageId();
String t1 = factory.getResources(serverLanguageId).getResource("there is already another employee with the same employee code.");
String t2 = factory.getResources(serverLanguageId).getResource("there is already another people with the same first and last name.");
ArrayList companiesList = ((JAIOUserSessionParameters)userSessionPars).getCompanyBa().getCompaniesList("SCH01");
Employees bean = (Employees)JAIOBeanFactory.getInstance().getBean(Employees.class);
Response answer = bean.insertEmployee(vo,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername(),companiesList,customizedFields);
return answer;