class ToolVersionDao extends NamedParameterJdbcDaoSupport {

    public Optional<ToolVersion> loadToolVersion(Long toolId, String version) {
        return getJdbcTemplate()
                .query(loadToolVersionQuery, ToolVersionParameters.getRowMapper(), toolId, version)
                .stream()
                .findFirst();
    }

}