Added hasStaticContex method to Constraint and implemented it in the
ConstraintImpl.