Adds REST server and java resource