class ReaderTGFF {

	protected Mappings<Task, Resource> toMappings(List<String> in, ResourceTypes<Resource> resourceTypes) {

		Mappings<Task, Resource> mappings = new Mappings<Task, Resource>();

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

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

			// import mappings (to valid resource types)
			if (currentLine.contains(CORE) || currentLine.contains(PROC) || currentLine.contains(CLIENT_PE)
					|| currentLine.contains(SERVER_PE)) {
				importMappings(currentLine, it, resourceTypes, mappings);
			}
		}
		return mappings;
	}

}