This document discusses advanced pattern authoring techniques in WebSphere Message Broker. It describes using subflows to define where pattern users can customize pattern instances. It recommends putting customization subflows in a separate project so they are not deleted when a pattern instance is regenerated. The document also discusses using Java code and PHP templates to extend pattern authoring by programmatically generating artifacts in pattern instances. Java classes can manipulate message flows directly using the provided API. PHP templates output files and PHP scripts can coordinate multiple templates with custom logic.