Support java7