@SuppressWarnings("JavadocReference")
    protected Map<String, Object> getNewOptionsByName(ResourceOptions options, Map<String, Object> optionsByName) {
        Map<String,Object> clonedOptionsByName = new HashMap<>(optionsByName);
        clonedOptionsByName.put(NEXT_PROTOCOL.name(), options.getOption(NEXT_PROTOCOL));
        clonedOptionsByName.put(QUALIFIER.name(), options.getOption(QUALIFIER));
        clonedOptionsByName.put(TRANSPORT_URI.name(), options.getOption(TRANSPORT_URI));
        clonedOptionsByName.put(BIND_ALTERNATE.name(), options.getOption(BIND_ALTERNATE));
        clonedOptionsByName.put(RESOLVER.name(), options.getOption(RESOLVER));

        return clonedOptionsByName;
    }
@ SuppressWarnings ( "JavadocReference" ) protected Map < String , Object > getNewOptionsByName ( ResourceOptions options , Map < String , Object > optionsByName ) { Map < String , Object > clonedOptionsByName = new HashMap < > ( optionsByName ) ; clonedOptionsByName . put ( NEXT_PROTOCOL . name ( ) , options . getOption ( NEXT_PROTOCOL ) ) ; clonedOptionsByName . put ( QUALIFIER . name ( ) , options . getOption ( QUALIFIER ) ) ; clonedOptionsByName . put ( TRANSPORT_URI . name ( ) , options . getOption ( TRANSPORT_URI ) ) ; clonedOptionsByName . put ( BIND_ALTERNATE . name ( ) , options . getOption ( BIND_ALTERNATE ) ) ; clonedOptionsByName . put ( RESOLVER . name ( ) , options . getOption ( RESOLVER ) ) ; return clonedOptionsByName ; }
These options are removed and set in {@link #parseNamedOptions(java.net.URI, ResourceOptions, java.util.Map }
above, so we need to include them in the new options by name map used for alternate construction.