[rhq-project/rhq] 0bf6f0: refactoring some functions into a utility class