[BZ 1051299] Check for illegal arguments passed to the helper methods and throw an adequate exception to present more info to the user.
Merge pull request #47 from rhq-project/BZ1051299

[BZ 1051299] Check for illegal arguments passed to the helper methods an...