short id = DbUtil.getUnsignedTinyIntAsShort(rs, 1);
short id = rs.getShort(1);
    private static short getNextVolumeID(Connection conn) throws ServiceException {        PreparedStatement stmt = null;        ResultSet rs = null;        try {            stmt = conn.prepareStatement("SELECT MAX(id) FROM volume");            rs = stmt.executeQuery();            if (rs.next()) {                short id = DbUtil.getUnsignedTinyIntAsShort(rs, 1);                return ++id;            }        } catch (SQLException e) {            throw ServiceException.FAILURE("getting max volume ID", e);        } finally {            DbPool.closeResults(rs);            DbPool.closeStatement(stmt);        }        return 1;    }