[GDXHTML-8] Use java8's foreach instead old foreach