Update APINewModelExample.java

Changes to match the example described on the wiki.