try
{
// Write the Struts config XML, and the Validator config XML if appropriate.
app = createStrutsApp( publicClass );
GenValidationModel validationModel = new GenValidationModel( publicClass, app, getEnv() );
if ( ! validationModel.isEmpty() )
{
app.setValidationModel( validationModel );
validationModel.writeToFile();
}
generateStrutsConfig( app, publicClass );
// First, write out XML for any fields annotated with @Jpf.SharedFlowField or @Control.