Attempt to remove now useless code with Java7, to prevent from
exceptions.