code: private static Stream<FedoraResource> getAllChildren(final FedoraResource resource) {
          return concat(of(resource), resource.getChildren().flatMap(FedoraResourceImpl::getAllChildren));
      }
docs: Get all children recursively, and flatten into a single Stream.