private static List<Endpoint> loadEndpoints(URL resourceUrl, String endpointKeyPrefix, int defaultPort) {
        try (InputStream in = resourceUrl.openStream()) {
            final Properties props = new Properties();
            props.load(in);
            return loadEndpoints(props, endpointKeyPrefix, defaultPort);
        } catch (IOException e) {
            throw new IllegalArgumentException("failed to load: " + resourceUrl.getFile(), e);
        }
    }
Returns a new {@link PropertiesEndpointGroup} built from the properties set so far.
core/src/main/java/com/linecorp/armeria/client/endpoint/PropertiesEndpointGroupBuilder.java