private void writeParameters(JarOutputStream target, String parameters) {
		try (InputStream in = new ByteArrayInputStream(parameters.getBytes(Charset.forName("UTF-8")))) {
			JarEntry entry = new JarEntry("config/composedjob.properties");
			target.putNextEntry(entry);
			StreamUtils.copy(in, target);
			target.closeEntry();
		}
		catch(IOException ioe){
			throw new IllegalStateException(ioe.getMessage(), ioe);
		}
	}
A service that knows how to handle registration of new module definitions, be it through composition or
upload of actual 'bytecode'. Handles all bookkeeping (such as existence checking, dependency tracking, <i>etc.</i>)
that is common to all registration scenarios.

<p>Also adds pagination to {@code find*()} methods of {@code ModuleRegistry} after the fact.</p>

@author Eric Bottard
@author Gary Russell
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/support/ModuleDefinitionService.java