EntityExpansionLimit bug in JDK, see http://stackoverflow.com/a/20482332