Templecoin core java implmenetation