public int loadStream(InputStream is) throws IOException {
		int entries = 0;
		BufferedReader br = new BufferedReader(new InputStreamReader(is));
		String line, last = " ";
		LinkedList<String> resp = new LinkedList<String>();

		while ((line = br.readLine()) != null) {
			if (line.isEmpty())
				continue;
			if (line.charAt(0) == '#') {
				if (line.length() == 1)
					continue;
				if (!resp.isEmpty()) {
					storeInModel(last, resp, wildcardModel);
					++entries;
				}
				resp = new LinkedList<String>();
				last = line.substring(1);
			} else
				resp.add(line);
		}
		br.close();

		if (!resp.isEmpty()) {
			storeInModel(last, resp, wildcardModel);
			++entries;
		}
		return entries;
	}