public static String addSegment(String path, String segment) {

		path = clean(path);
		segment = clean(segment);
		
		String theFirst = firstSegment(segment);
	
		if(isArraySegment(theFirst) || path == EMPTY_STRING) {
			path = path + segment;
		}else{
			path = path + DOT + segment;
		}
		
		return copy(path);
	}