public ListItemsResults getItems(
     XOAIContext context, int offset, int length, String metadataPrefix, String setSpec, Date from)
     throws CannotDisseminateFormatException, OAIException {
   List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
   if (context.isStaticSet(setSpec)) {
     if (context.getSetFilter(setSpec) != null)
       filters.add(new ScopedFilter(context.getSetFilter(setSpec), Scope.Set));
     return itemRepository.getItems(filters, offset, length, from);
   } else return itemRepository.getItems(filters, offset, length, setSpec, from);
 }
 public ListItemsResults getItems(
     XOAIContext context, int offset, int length, String metadataPrefix, Date from, Date until)
     throws CannotDisseminateFormatException, OAIException {
   List<ScopedFilter> filters = getScopedFilters(context, metadataPrefix);
   return itemRepository.getItems(filters, offset, length, from, until);
 }