Heuristics-Based Strategies for Resolving Context Inconsistencies in Pervasive Computing Applications