Java Code to Reference in Future