try {
Subject oldVO = (Subject)((ValueObject[])inputPar)[0];
Subject newVO = (Subject)((ValueObject[])inputPar)[1];
// 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 people with the same first and last name.");
String t2 = factory.getResources(serverLanguageId).getResource("there is already another organization with the same corporate name.");
Contacts bean = (Contacts)JAIOBeanFactory.getInstance().getBean(Contacts.class);
Response answer = null;
if (newVO.getSubjectTypeREG04().equals(ApplicationConsts.SUBJECT_ORGANIZATION_CONTACT))
answer = bean.updateOrganization((OrganizationVO)oldVO,(OrganizationVO)newVO,t1,t2,((JAIOUserSessionParameters)userSessionPars).getServerLanguageId(),userSessionPars.getUsername());