public static boolean isValidStreamName(String streamname) {
		if (streamname.length() == 0) {
			return false;
		}
		if (!Character.isJavaIdentifierStart(streamname.charAt(0))) {
			return false;
		}
		for (int i = 1, max = streamname.length(); i < max; i++) {
			char ch = streamname.charAt(i);
			if (!(Character.isJavaIdentifierPart(ch) || ch == '-')) {
				return false;
			}
		}
		return true;
	}
Verify the supplied name is a valid stream name. Valid stream names must follow the same rules as java
identifiers, with the additional option to use a hyphen ('-') after the first character.

@param streamname the name to validate
@return true if name is valid
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/dsl/StreamConfigParser.java