@Override
 public void passDocument(String id) throws ServiceException {
   // TODO Auto-generated method stub
   StudentDocumentModel model = studentDocumentDAO.get(id);
   model.setStatus("2");
   model.setReason(null);
   studentDocumentDAO.merge(model);
 }
 @Override
 public StudentDocumentModel saveDocument(StudentDocumentModel model) throws ServiceException {
   // TODO Auto-generated method stub
   if (model.getId() == null) {
     model.setPostTime(new Date());
     studentDocumentDAO.saveOrUpdate(model);
   } else {
     model.setPostTime(new Date());
     studentDocumentDAO.merge(model);
   }
   return model;
 }