BZ-12500 Added reference counted dependency management