public static ArrayList<String> getTextSection(ArrayList<String> text, int sectionID) {
		ArrayList<String> section = new ArrayList<String>();
		int lineBegin = 0;
		int lineEnd = 0;
		
		// detect the beginning and the end of the section
		for (int i = 0; i < text.size(); i++) {
			String str = text.get(i);
			
			if (str.startsWith("%"+sectionID)) lineBegin = i;
			
			if (str.endsWith(";") && i > lineBegin) lineEnd = i; 
		}
		
		// read 
		for (int i = lineBegin; i < lineEnd; i++) {
			String str = text.get(i);
			
			if (i == lineBegin) continue;
			
			else if (i == lineEnd) section.add(str.substring(0, str.length() - 1));
			
			else section.add(str);
		}
		
		return section;
	}