Added method that is not defined as a default method in Java versions before Java 8.