public void readFrom(org.jdom.Element element) {
        Element mainConfigElement = element.getChild(PREF_CHILD_ELEMENT);

        if( mainConfigElement == null )
        {
            postUrl = "http://localhost/" ;
            return ;
        }

        defaultChannel = mainConfigElement.getChildText(PREF_KEY_SLACK_DEF_CHANNEL);
        postUrl = mainConfigElement.getChildText(PREF_KEY_SLACK_POSTURL);
        logoUrl = mainConfigElement.getChildText(PREF_KEY_SLACK_LOGOURL);

        Attribute postSuccessfulAttr = mainConfigElement.getAttribute(ATTR_NAME_POST_SUCCESSFUL);
        Attribute postStartedAttr = mainConfigElement.getAttribute(ATTR_NAME_POST_STARTED);
        Attribute postFailedAttr = mainConfigElement.getAttribute(ATTR_NAME_POST_FAILED);

        if( postSuccessfulAttr != null )
        {
            try {
                postSuccessful = postSuccessfulAttr.getBooleanValue();
            }
            catch( DataConversionException ex )
            {
                postSuccessful = true ;
            }
        }

        if( postStartedAttr != null )
        {
            try {
                postStarted = postStartedAttr.getBooleanValue();
            }
            catch( DataConversionException ex )
            {
                postStarted = false ;
            }
        }

        if( postFailedAttr != null )
        {
            try {
                postFailed = postFailedAttr.getBooleanValue();
            }
            catch( DataConversionException ex )
            {
                postFailed = false ;
            }
        }

    }