public static String getDefinitionParameters(String definition) {
		Matcher matcher = parameterPattern.matcher(definition);
		String result = "";
		if (matcher.find()){
			result = " " + definition.substring(matcher.start());
		}
		return result;
	}
Throws exception if user tries to create a single job instance with no transitions.
@param definition the definition to be validated
@param jobInstances collection of available job instances
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/ComposedJobUtil.java