code: @Override
      public Stream<FedoraResource> getChildren(final Boolean recursive) {
          try {
              if (recursive) {
                  return nodeToGoodChildren(node).flatMap(FedoraResourceImpl::getAllChildren);
              }
              return nodeToGoodChildren(node);
          } catch (final RepositoryException e) {
              throw new RepositoryRuntimeException(e);
          }
      }
docs: /* (non-Javadoc)
  @see org.fcrepo.kernel.api.models.FedoraResource#getChildren(Boolean recursive)