Script template = (Script) value;
DynamicTag tag = new DynamicTag(template);
// XXXX: somehow we should find the template's
// <invokeBody> tag and associate it with this instance
return new DynaTagScript(tag);
}
else if ( value instanceof DynaTag ) {
DynaTag tag = (DynaTag) value;
return new DynaTagScript(tag);
}
return null;
}