[DW] ported to java 7