Renamed the function to avoid name clashes between Java 1.6 higher