Replace Objects and BitSet of JAVA 7 with substitutes.