Fun: remove dependecy on Java 7 method