}    try { String path = m_controller.getPathForLogger( this ); CategoryDirective[] categories = m_model.getCategoryDirectives(); for( int i=0; i<categories.length; i++ ) { CategoryDirective category = categories[i]; String spec = path + "." + category.getName(); java.util.logging.Logger log = java.util.logging.Logger.getLogger( spec ); Priority priority = category.getPriority(); if( null != priority ) { if( Priority.ERROR.equals( priority ) ) { log.setLevel( Level.SEVERE ); } else if( Priority.WARN.equals( priority ) ) { log.setLevel( Level.WARNING ); } else if( Priority.INFO.equals( priority ) ) { log.setLevel( Level.INFO ); } else if( Priority.DEBUG.equals( priority ) ) { log.setLevel( Level.FINE ); } }    } } catch( RemoteException e ) { final String error = "Remote exception raised while attempting to access component logging categories."; throw new ControllerException( error, e );
    public synchronized void activate() throws ControlException, InvocationTargetException    {        if( isActive() )        {            return;        }                try        {            if( m_model.getActivationPolicy().equals( ActivationPolicy.STARTUP ) )            {                getLogger().debug( "activating" );                m_holder.getInstance();            }                        //            // activate the children            //                        Component[] components = (Component[]) m_handlers.values().toArray( new Component[0] );            for( int i=0; i<components.length; i++ )            {                Component component = components[i];                component.activate();            }                        m_active = true;        }        catch( RemoteException e )        {            deactivate();            final String error =               "Remote exception raised while attempting to access component activation policy.";            throw new ControllerException( error, e );        }        finally        {            if( !m_active )            {                getLogger().warn( "activation failed" );                deactivate();            }        }    }