code: public static Func1<JsonDocument, DocumentFragment<Mutation>> getMapFullDocResultToSubDocFn(final Mutation mutation) {
          return new Func1<JsonDocument, DocumentFragment<Mutation>>() {
              @Override
              public DocumentFragment<Mutation> call(JsonDocument document) {
                  return new DocumentFragment<Mutation>(document.id(), document.cas(), document.mutationToken(),
                          Collections.singletonList(SubdocOperationResult.createResult(null, mutation, ResponseStatus.SUCCESS, null)));
              }
          };
      }
docs: Creates anonymous function for mapping full JsonDocument insert result to document fragment result
  
  @return anonymous function