public void applyUpdate(UpdateBlock update) {
System.out.println("BEGIN");
for (Update u : update.list()) {
switch (u.getUpdateType()) {
case INSTALL_ROOT:
InstallRoot installRoot = (InstallRoot) u;
System.out.println("\t+ROOT {id: " + installRoot.getId() + ", type: " + installRoot.getUpdateType() + "}");
break;
case INSTALL_FIELD:
InstallField installField = (InstallField) u;
System.out.println("\t+ {parentId: " + installField.getParentId() + ", id: " + installField.getId() + ", name: \"" + installField.getName() + "\", type: " + installField.getUpdateType() + "}");
break;