Support java 6