Solid Liquid Two Phase Commit Patterns Java