improvement to SemanticResourceUtils