support only Java 6 and higher