#1195 refactored the jolokia polling so it can be used both with docker and child containers