@Override
 public Map<String, Set<Permission>> getRequiredPermissions() {
   return Collections.singletonMap(
       "",
       dvToList.isReleased()
           ? Collections.<Permission>emptySet()
           : Collections.singleton(Permission.ViewUnpublishedDataverse));
 }
  @Override
  public List<DvObject> execute(CommandContext ctxt) throws CommandException {
    LinkedList<DvObject> result = new LinkedList<>();
    for (Dataset ds : ctxt.datasets().findByOwnerId(dvToList.getId())) {
      try {
        ds = ctxt.engine().submit(new GetDatasetCommand(getRequest(), ds));
        result.add(ds);
      } catch (PermissionException ex) {
      }
    }
    for (Dataverse dv : ctxt.dataverses().findByOwnerId(dvToList.getId())) {
      try {
        dv = ctxt.engine().submit(new GetDataverseCommand(getRequest(), dv));
        result.add(dv);
      } catch (PermissionException ex) {
      }
    }

    return result;
  }