How to build Java based Cloud Application