Forking from facebook/nifty for Java6