Worked around idiotic design mistake in Apache commons.