private void InitFailedRequests()
        {
            if (this.failedRequests != null)
            {
                return;
            }
            YarnServiceProtos.GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto
                                 : builder;
            IList <YarnServiceProtos.ContainerExceptionMapProto> protoList = p.GetFailedRequestsList
                                                                                 ();

            this.failedRequests = new Dictionary <ContainerId, SerializedException>();
            foreach (YarnServiceProtos.ContainerExceptionMapProto ce in protoList)
            {
                this.failedRequests[ConvertFromProtoFormat(ce.GetContainerId())] = ConvertFromProtoFormat
                                                                                       (ce.GetException());
            }
        }