private static List<ServerPort> armeriaPorts(ServerBuilder sb) {
        try {
            final Field ports = ServerBuilder.class.getDeclaredField("ports");
            ports.setAccessible(true);
            @SuppressWarnings("unchecked")
            final List<ServerPort> armeriaPorts = (List<ServerPort>) ports.get(sb);
            return armeriaPorts;
        } catch (NoSuchFieldException ignored) {
            throw new Error(); // Should never reach here.
        } catch (IllegalAccessException e) {
            throw new IllegalStateException("Failed to get ports in " + ServerBuilder.class.getSimpleName() +
                                            " via reflection.", e);
        }
    }
Creates a new factory instance with the specified {@link ConfigurableListableBeanFactory}.
spring/boot3-webflux-autoconfigure/src/main/java/com/linecorp/armeria/spring/web/reactive/ArmeriaReactiveWebServerFactory.java