made appInvokerContract addStateToObject method compatible with its concretion