@Override
	public Iterable<Job> findAllInRange(String from, boolean fromInclusive, String to, boolean toInclusive) {
		List<Job> all = findAll();
		if (CollectionUtils.isEmpty(all)) {
			return Collections.emptyList();
		}
		Collections.sort(all);

		List<Job> results = new ArrayList<Job>();
		for (Job job : all) {
			if (job.getDefinition().getName().compareTo(to) > 0) {
				break;
			}
			if (job.getDefinition().getName().compareTo(from) < 0) {
				continue;
			}
			results.add(job);
		}
		return results;
	}
Job instance repository. It should only return values for Jobs that are deployed.

@author Mark Fisher
@author David Turanski
@author Gunnar Hillert
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/zookeeper/ZooKeeperJobRepository.java