final Object values = expression.evaluate(exchange, Object.class);
if (values != null) {
transactionTemplate.execute(new TransactionCallback<Object>() {
public Object doInTransaction(TransactionStatus status) {
if (getEndpoint().isJoinTransaction()) {
targetEntityManager.joinTransaction();
}
if (values.getClass().isArray()) {
Object[] array = (Object[])values;
for (int index = 0; index < array.length; index++) {
save(array[index]);