Added info on where the code was taken from in the javadoc header