Don't use Java 6 features like Arrays.copyOfRange(). Use the animal-sniffer-maven-plugin to verify this during the test phase.