Made compatible with JRE 1.6.

Signed-off-by: Matt Hoover <the.one.eleven@gmail.com>