class ToolVersionDao extends NamedParameterJdbcDaoSupport {

    public Optional<ToolVersion> loadToolVersionWithSettings(Long toolId, String version) {
        return getJdbcTemplate()
                .query(loadToolVersionSettingsQuery, ToolVersionParameters.getRowMapperWithSettings(), toolId, version)
                .stream()
                .findFirst();
    }

}