set dependencyContainer in serialized