Public methods should throw only one exception.
Constants should be name upper case.
Avoid NullPointerExxceptions when comparing with string literals.