String bizType = bizFormBean.getBizType();
if ((errors.empty()) && (null!=bizType)) {
// Generate and populate our business request
Messages messages = new MessagesImpl();
try {
BizRequest bizRequest = createBizRequest(bizType);
// Populate the business request with ourselves
// merged with any user profile properties
Map properties = merge(getUserProfile());
BeanUtils.copyProperties(bizRequest,properties);
}
catch (Throwable t) {
messages.add(new MessageImpl(
Tokens.ERROR_GENERAL,
t.toString()
));
}
// Validate our business request
if (messages.isEmpty()) {
messages.add(
bizRequest.validate(mapping.getAttribute()));
}
if (messages.isEmpty()) {
setBizRequest(bizRequest);
}
else {