Removed java 7 method.