[COCOON-2339] throwing unchecked IllegalArgumentException instead of SQLException to preserve builds with JDK < 1.7