Update Elastic.java

add transactional because of session is closing