I have developed before with node.js and spray.io to send/receive REST API response to front-end/back-end server and vice versa, but I'm having a hard time returning a value to a java cli application (like terminal) using plain java.I have developed before with node.js and spray.