XCOMMONS-478: Add API to search for a dependency in a specific namespace
* Protect against NPE.