}
public String handleFileUpload(FileUploadEvent event)
{
HttpSession session = FacesUtils.getSession();
Employee employee = (Employee) session.getAttribute(DataKeeperConstants.EMPLOYEE);
DataKeeperService service = DataKeeperUtils.getService();
UploadedFile file = event.getFile();
if (file != null)
{
DocumentInfo dataInfo = new DocumentInfo();
dataInfo.setData(file.getContents());
dataInfo.setDocumentName(file.getFileName());
dataInfo.setSize(file.getSize());
dataInfo.setOwnerName(employee.getEmployeeName());
dataInfo.setOwnerId(employee.getEmployeeId());
dataInfo.setUplodedDate(new Date());
service.insertData(dataInfo);
FacesMessage msg = new FacesMessage("Succesful", file.getFileName() + " is uploaded.");