private TMState getAutomatonFromFile(int i, Point point) {
		TMState block = new TMState(i, point, this);
		Serializable serial = OpenAction.getLastObjectOpened();
		File lastFile = OpenAction.getLastFileOpened();
		if (lastFile == null || OpenAction.isOpened() == false) {
			return null;
		}
        
//		block = putBlockContentsInAutomaton(block, serial, lastFile.getName(),
//				this);
        assert serial instanceof TuringMachine;
        TuringMachine tm = (TuringMachine) serial;

        tm.setEnvironmentFrame(this.getEnvironmentFrame());
        block.setInternalName(lastFile.getName());
        
        //MERLIN MERLIN MERLIN MERLIN MERLIN//

        block.setInnerTM(tm);

		block.setName(lastFile.getName().substring(0, lastFile.getName().length() - 4));
		addState(block);
		return block;
	}