Compounds of Formula (I) and pharmaceutically acceptable salts thereof in which X1, X2, L, R3, R4, R5, R7 and n have the meanings given in the specification, are modulators of GPR119 and are useful in the treatment or prevention of diseases such as such as, but not limited to, type 2 diabetes, diabetic complications, symptoms of diabetes, metabolic syndrome, obesity, dyslipidemia, and related conditions.