Bump portal-java to 0.2 and change the code to use the new features.