ArrayList resultDeleteLog = new ArrayList();
HrFacadeHome hrFacadeHome = (HrFacadeHome)CVUtility.getHomeObject("com.centraview.hr.hrfacade.HrFacadeHome","HrFacade");
try
{
//call to EJB server
HrFacade remote =(HrFacade)hrFacadeHome.create();
remote.setDataSource(this.dataSource);
for (int i=0; i<recordID.length; i++)
{
if(recordID[i] != null && !recordID[i].equals("")){
int elementID = Integer.parseInt(recordID[i]);
try{
remote.deleteTimeSheet(individualID,elementID);
// TODO deleteTimeSheet user-rignts?
}//end of try block
catch(AuthorizationFailedException ae){
String errorMessage = ae.getExceptionDescription();
resultDeleteLog.add(errorMessage);