Added generics to DependencyManager