public static String getStreamExtractor(Queue<String> parts) {
		String type = next(parts);
		if (type == null)
			return null;
		type = type.toUpperCase();
		if (type.equals("SET")) {
			String value = next(parts);
			return String.format("new StaticExtractor(%s)", value);
		}
		try {
			ParseType.valueOf(type);
			return "ParseType." + type;
		} catch (IllegalArgumentException e) {
		}
		try {
			return String.format("new SizedStreamExtractor(%d)", Integer.parseInt(type));
		} catch (NumberFormatException e) {
		}
		return null;
	}