Refactor license javadoc a bit; add Util class; add Util test.