private ElementClassifier loadClassifierModel(Extractor extractor) {
   Connection con = null;
   PreparedStatement pstmt = null;
   ResultSet rs = null;
   try {
     con = Application.getDataSource().getConnection();
     pstmt = con.prepareStatement("SELECT cmodel FROM extractors WHERE id = ?");
     pstmt.setInt(1, extractor.getId());
     rs = pstmt.executeQuery();
     if (rs.next()) {
       byte[] buf = rs.getBytes(1);
       if (buf != null) {
         ElementClassifier c =
             ElementClassifier.readElementClassifier(new ByteArrayInputStream(buf));
         System.out.println(c);
         return c;
       }
     }
   } catch (Exception e) {
     e.printStackTrace();
   } finally {
     try {
       rs.close();
       pstmt.close();
       con.close();
     } catch (Exception e) {
     }
   }
   return null;
 }