* Updating to java 1.7. | * Replacing deprecated static method.