@RequestMapping(value = "", method = RequestMethod.GET, params = { "jobname" })
	@ResponseStatus(HttpStatus.OK)
	@ResponseBody
	public List<ModuleMetadataResource> displayForJobname(@RequestParam("jobname") String jobName) {

		final Iterable<ModuleMetadata> moduleMetadataIterable = this.moduleMetadataRepository.findAll();
		final List<ModuleMetadata> moduleMetadataListToReturn = new ArrayList<ModuleMetadata>();

		for (ModuleMetadata moduleMetadata : moduleMetadataIterable) {
			if (jobName.equals(moduleMetadata.getUnitName())) {
				moduleMetadataListToReturn.add(moduleMetadata);
			}
		}

		final List<ModuleMetadataResource> resources = moduleMetadataResourceAssembler.toResources(moduleMetadataListToReturn);
		maskSensitiveData(resources);
		return resources;
	}
Will return a collection of {@link ModuleMetadata} that are associated with
the provided {@code jobname} request parameter.

@param jobName parameter must not be null
@return Collection of {@link ModuleMetadata}, might be empty but never {@code null}
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/ModulesMetadataController.java