class SubnetSelectorService {

    List<CloudSubnet> collectPublicSubnets(Collection<CloudSubnet> subnetMetas) {
        List<CloudSubnet> result = new ArrayList<>();
        for (CloudSubnet subnetMeta : subnetMetas) {
            if (isUsablePublicSubnet(subnetMeta)) {
                result.add(subnetMeta);
            }
        }
        LOGGER.debug("Public subnets for selections: {}", result);
        return result;
    }

}