Migrating pre-existing Max patches to Java backend.