Replaced Java7 import with other to remove Java7 dependency.