Dr. Lorraine is suspicious of a peptic ulcer, which is a disruption in the stomach or duodenal mucosa extending through its muscularis layer. The primary function of the mucosa is