code: public static CorsServiceBuilder forOrigins(String... origins) {
          requireNonNull(origins, "origins");
          if (Arrays.asList(origins).contains(ANY_ORIGIN)) {
              if (origins.length > 1) {
                  logger.warn("Any origin (*) has been already included. Other origins ({}) will be ignored.",
                              Arrays.stream(origins).filter(c -> !ANY_ORIGIN.equals(c))
                                    .collect(Collectors.joining(",")));
              }
              return forAnyOrigin();
          }
          return new CorsServiceBuilder(origins);
      }
docs: Creates a new builder with the specified origins.