LdapServerAdapter ldapServerAdapter = ldapServerAdapterExtension.getInstance();
if ( ldapServerAdapter != null )
{
try
{
ldapServerAdapter.stop( server, monitor );
}
catch ( Exception e )
{
// Setting the server as started
server.setStatus( LdapServerStatus.STARTED );