}
if ( def instanceof ViewDef ) {
// Check if the view exists and is valid
ViewDef view = (ViewDef) def;
if ( !dd.checkView( c, view ) ) {
// If not, then auto create it or throw a not found exception
if ( shouldAutoCreate() ) {
log.info( "VALIDATION - CREATING VIEW " + def );