This method will probably have to be re-vamped based on my recent changes from - https://github.com/Katello/katello/pull/2791