JCR-2216: Cannot build JCR with Java 7

https://jira.exoplatform.org/browse/JCR-2216