@SuppressWarnings("unused") public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  submitCycle=true;
  String subConfigName=(String)getDisplayFieldValue(TF_EVENT_HANDLER_NAME);
  if (StringUtils.isBlank(subConfigName)) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,ERROR_MESSAGE,"message.missing.name");
    forwardTo();
  }
  AbstractAuditModel model=(AbstractAuditModel)getModel();
  try {
    AMPropertySheet ps=(AMPropertySheet)getChild(PROPERTY_ATTRIBUTE);
    String schemaName=(String)getPageSessionAttribute(AUDIT_HANDLER_TYPE);
    @SuppressWarnings("unchecked") Map<String,Set<String>> values=ps.getAttributeValues(model.getEventHandlerAttributeNames(schemaName));
    model.createEventHandler(subConfigName,schemaName,values);
    backToProfileViewBean();
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,ERROR_MESSAGE,e.getMessage());
    forwardTo();
  }
}

@ SuppressWarnings ( "unused" ) public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { submitCycle = true ; String subConfigName = ( String ) getDisplayFieldValue ( TF_EVENT_HANDLER_NAME ) ; if ( StringUtils . isBlank ( subConfigName ) ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , ERROR_MESSAGE , "message.missing.name" ) ; forwardTo ( ) ; } AbstractAuditModel model = ( AbstractAuditModel ) getModel ( ) ; try { AMPropertySheet ps = ( AMPropertySheet ) getChild ( PROPERTY_ATTRIBUTE ) ; String schemaName = ( String ) getPageSessionAttribute ( AUDIT_HANDLER_TYPE ) ; @ SuppressWarnings ( "unchecked" ) Map < String , Set < String > > values = ps . getAttributeValues ( model . getEventHandlerAttributeNames ( schemaName ) ) ; model . createEventHandler ( subConfigName , schemaName , values ) ; backToProfileViewBean ( ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , ERROR_MESSAGE , e . getMessage ( ) ) ; forwardTo ( ) ; } }
handles next button request .
