protected boolean register(List<Map.Entry<String, String>> filters) throws IOException {
            String query = filters
                .stream()
                .map(it -> {
                    try {
                        return (
                            URLEncoder.encode(it.getKey(), "UTF-8") + "=" + URLEncoder.encode(it.getValue(), "UTF-8")
                        );
                    } catch (UnsupportedEncodingException e) {
                        throw new RuntimeException(e);
                    }
                })
                .collect(Collectors.joining("&"));

            log.debug("Sending '{}' to Ryuk", query);
            out.write(query.getBytes());
            out.write('\n');
            out.flush();

            return waitForAcknowledgment(in);
        }
Registers the given filters with Ryuk

@param filters the filter to register
@return true if the filters have been registered successfully, false otherwise
@throws IOException if communication with Ryuk fails
core/src/main/java/org/testcontainers/utility/ResourceReaper.java