Removed method not available in Java 6.