Temporary java6 compatibility