Java7 compatibility