paramType = CompilerUtils.getGenericBoundsType( paramType );
assert paramType instanceof DeclaredType : paramType.getClass().getName(); // checker should enforce this
TypeDeclaration decl = CompilerUtils.getDeclaration( ( DeclaredType ) paramType );
List formBeans = parentApp.getMatchingFormBeans( decl, getFormMember() != null );
assert formBeans.size() > 0;
FormBeanModel formBeanModel = (FormBeanModel) formBeans.get(0);
setFormBeanMessageResourcesKey(formBeanModel.getFormBeanMessageResourcesKey());
//
// If this isn't an ActionForm-derived argument, keep track of the classname for the runtime.
//
if ( ! CompilerUtils.isAssignableFrom( PAGEFLOW_FORM_CLASS_NAME, decl, parentApp.getEnv() ) )
{
setFormClass( CompilerUtils.getLoadableName( decl ) );
}
return formBeanModel.getName();
}