public static boolean isComposedJobDefinition(String definition){
		boolean result = false;
		try {
			JobParser parser = new JobParser();
			JobSpecification jobSpecification = parser.parse(definition);
			if (jobSpecification.getJobReferences().size() > 1) {
				result = true;
			}
			//Check for single instanceof job with a transition
			if (jobSpecification.getJobReferences().size() == 1){
				JobReference reference = jobSpecification.getJobReferences().get(0);
				if( reference.transitions != null && reference.transitions.size() > 0){
					result = true;
				}
			}
		} catch (JobSpecificationException e) {
			//failed to parse, could still be a composed job.  Look for basic components
			// such as || or & if found return true.
			Matcher matcher = orchestrationPattern.matcher(definition);
			result = matcher.find();
		}
		return result;
	}
Is this definition a composed job definition
@param definition the definition the user specified
@return true if a valid composed job definition else false.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/job/dsl/ComposedJobUtil.java