Registers a context collection with the context manager.
Returns eOk if successful, or an appropriate error code if not.