Code for Java base code for RP app.