Copying license from http://glassfish.java.net/public/CDDL+GPL.html