Made source java7 compatible.