OPTIKA INC. and COMPUTERSHARE TRUST COMPANY, INC. as Rights Agent AMENDED AND RESTATED RIGHTS AGREEMENT Dated as of July 29, 2002