private void MergeLocalToBuilder()
 {
     if (this.applicationId != null)
     {
         builder.SetApplicationId(ConvertToProtoFormat(this.applicationId));
     }
     if (this.priority != null)
     {
         builder.SetPriority(ConvertToProtoFormat(this.priority));
     }
     if (this.amContainer != null)
     {
         builder.SetAmContainerSpec(ConvertToProtoFormat(this.amContainer));
     }
     if (this.resource != null && !((ResourcePBImpl)this.resource).GetProto().Equals(builder
                                                                                     .GetResource()))
     {
         builder.SetResource(ConvertToProtoFormat(this.resource));
     }
     if (this.applicationTags != null && !this.applicationTags.IsEmpty())
     {
         builder.ClearApplicationTags();
         builder.AddAllApplicationTags(this.applicationTags);
     }
     if (this.amResourceRequest != null)
     {
         builder.SetAmContainerResourceRequest(ConvertToProtoFormat(this.amResourceRequest
                                                                    ));
     }
     if (this.logAggregationContext != null)
     {
         builder.SetLogAggregationContext(ConvertToProtoFormat(this.logAggregationContext)
                                          );
     }
     if (this.reservationId != null)
     {
         builder.SetReservationId(ConvertToProtoFormat(this.reservationId));
     }
 }