Reinvented the rest context builder.