if ( defaultMessageResources != null )
{
for ( Iterator ii = getMessageResourcesList().iterator(); ii.hasNext(); )
{
MessageResourcesModel i = ( MessageResourcesModel ) ii.next();
if ( i.getParameter().equals( defaultMessageResources ) ) return;
}
MessageResourcesModel mrm = new MessageResourcesModel( this );
String key = "formMessages:" + CompilerUtils.getLoadableName( formClassDecl );
mrm.setKey( key );
mrm.setParameter( defaultMessageResources );
mrm.setReturnNull( true );
addMessageResources( mrm );
if ( actionModel != null ) actionModel.setFormBeanMessageResourcesKey( key );
}
}