made source code compatible to Java versions below 1.7