(b) a former state employee who, within one year after his last employment has ceased, appears personally before any court or agency of the commonwealth as agent or attorney for anyone other than the commonwealth in connection with any particular matter in which the commonwealth or a state agency is a party or has a direct and substantial interest and which was under his official responsibility as