Added saveTransaction to commons.