JBIDE-17060 IncludeModel class has an error in logic

Error in algorithm is fixed.