Deprecated addDependency method and replaced it with addNamespace