if ((context == null) || (component == null)) {
throw new NullPointerException();
}
// Calculate and cache the form name
FormComponent form = (FormComponent) component;
String action = form.getAction();
ModuleConfig moduleConfig = form.lookupModuleConfig(context);
ActionConfig actionConfig = moduleConfig.findActionConfig(action);
if (actionConfig == null) {
throw new IllegalArgumentException("Cannot find action '" +
action + "' configuration");
}
String beanName = actionConfig.getAttribute();
if (beanName != null) {
form.getAttributes().put("beanName", beanName);
}
// Look up attribute values we need
String clientId = component.getClientId(context);
if (log.isDebugEnabled()) {