Added some extra checks to DependencyManager, and also changed System.out.println()'s in it to loggers