@Override
	public void validateBeforeSave(String name, String definition) {
		Assert.hasText(name, "name cannot be blank or null");
		D definitionFromRepo = getDefinitionRepository().findOne(name);
		if (definitionFromRepo != null) {
			throwDefinitionAlreadyExistsException(definitionFromRepo);
		}
		Assert.hasText(definition, "definition cannot be blank or null");
		if (!ComposedJobUtil.isComposedJobDefinition(definition)){
			parser.parse(name, definition, definitionKind);
		} else {
			composedJobParser.parse(definition);
		}
	}
Used in exception messages as well as indication to the parser.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/AbstractDeployer.java