JAVA and REST changes for showing graph