116117118119120121122123124125126
DocumentBuilder<Object> builder = builders.get( entityType ); if ( builder == null ) { throw new IllegalArgumentException( entityType.getName() + " is not a mapped entity (don't forget to add @Indexed)" ); } WorkType type; if ( id == null ) { type = WorkType.PURGE_ALL; } else { type = WorkType.PURGE;