Dealing with Application-specific Knowledge in Context-Aware Systems