@Override
	public void parse() {
		String filename = words[1];

		String pathToMTL = object.getContextfolder() + filename;

		InputStream fileInput = ResourceLoader.getResourceAsStream(pathToMTL);
		if (fileInput == null) {
			// Could not find the file in the jar.
			try {
				File file = new File(pathToMTL);
				if (file.exists()) fileInput = new FileInputStream(file);
			} catch (Exception e2) {
				e2.printStackTrace();
			}
		}

		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(fileInput));

			String currentLine = null;
			while ((currentLine = in.readLine()) != null) {

				LineParser parser = parserFactory.getLineParser(currentLine);
				parser.parse();
				parser.incoporateResults(object);
			}

			if (in != null) in.close();

		} catch (Exception e) {
			e.printStackTrace();
			throw new RuntimeException("Error parsing " + pathToMTL);
		}

	}