class ResourceConverterProviderImpl implements ResourceConverterProvider {

    public ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> getToClientConverter(String serverType) throws IllegalParameterValueException {
        prepareConverters();
        final ToClientConverter<? super Resource, ? extends ClientResource, ToClientConversionOptions> toClientConverter = toClientConverters.get(serverType);
        if(toClientConverter == null){
            throw new IllegalParameterValueException("type", serverType);
        }
        return toClientConverter;
    }

}