minaRegistry.bind( ldapService, getLdapProvider() ); JOptionPane.showMessageDialog( SessionsFrame.this, "Ldap service " + ldapService.getAddress()
( ( IoAcceptor ) requestor.getService() ).bind( requestor.getServiceAddress(), getLdapProvider() ); JOptionPane.showMessageDialog( SessionsFrame.this, "Ldap service " + requestor.getServiceAddress()
                public void actionPerformed( java.awt.event.ActionEvent e )                {                    try                    {                        minaRegistry.bind( ldapService, getLdapProvider() );                        JOptionPane.showMessageDialog( SessionsFrame.this, "Ldap service " + ldapService.getAddress()                            + " has been successfully bound.\n" + " Clients may now connect to the server once again.",                            "Success!", JOptionPane.INFORMATION_MESSAGE );                        isServiceBound = true;                        unbindItem.setEnabled( isServiceBound );                        bindItem.setEnabled( !isServiceBound );                    }                    catch ( IOException e1 )                    {                        log.error( "failed to rebind ldap service", e1 );                        JOptionPane.showMessageDialog( SessionsFrame.this, e1.getMessage(), "Error encountered!",                            JOptionPane.ERROR_MESSAGE );                    }                }