FaceBook Chat done in JavaFX and Rest