question: public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { RMRealmModel model = ( RMRealmModel ) getModel ( ) ; AMPropertySheet ps = ( AMPropertySheet ) getChild ( PROPERTY_ATTRIBUTE ) ; String realmName = ( String ) getDisplayFieldValue ( RMRealmModel . TF_NAME ) ; realmName = realmName . trim ( ) ; String parent = ( String ) getDisplayFieldValue ( RMRealmModel . TF_PARENT ) ; if ( parent != null ) { parent = parent . trim ( ) ; } else { parent = model . getStartDN ( ) ; } if ( realmName . length ( ) > 0 ) { try { Map values = ps . getAttributeValues ( model . getDataMap ( ) , false , model ) ; model . createSubRealm ( parent , realmName , values ) ; backTrail ( ) ; RMRealmViewBean vb = ( RMRealmViewBean ) getViewBean ( RMRealmViewBean . class ) ; passPgSessionMap ( vb ) ; vb . forwardTo ( getRequestContext ( ) ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; forwardTo ( ) ; } } else { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , "realm.missing.realmName" ) ; forwardTo ( ) ; } }
target:  Handles create realm request.