Fix for Java 8 compilation. Need to rework hashing algorithm