Get username, password and apiroot preferences to Java done