class ReaderTGFF {

	protected ResourceTypes<Resource> toResourceTypes(List<String> in) {

		ResourceTypes<Resource> resourceTypes = new ResourceTypes<Resource>();

		Iterator<String> it = in.iterator();
		String currentLine;

		while (it.hasNext()) {
			currentLine = it.next();

			// import resources and mappings (only mappings to valid
			// resource types are created)
			if (currentLine.contains(CORE) || currentLine.contains(PROC) || currentLine.contains(CLIENT_PE)
					|| currentLine.contains(SERVER_PE)) {
				importCore(currentLine, it, resourceTypes);
			}
		}
		return resourceTypes;
	}

}