Refactored Installations retrieval to work with roles
add unit test
adding final
factorize code
removed unused code
Merge branch 'AGPUSH-1107' into 1.0.x