returnValue=new PlainConfigurator(properties);
checkForNullConfiguration(file); checkJAXPAvailability();  try { returnValue= XmlConfigurator.getInstance(new FileInputStream(file)); } catch (IOException ioe) { throw createChannelConfigurationException(ioe); }
    public static ProtocolStackConfigurator getStackConfigurator(String properties) throws ChannelException {        if (propertiesOverride != null) {            properties = propertiesOverride;        }        // added by bela: for null String props we use the default properties        if(properties == null)            properties=JChannel.DEFAULT_PROTOCOL_STACK;        checkForNullConfiguration(properties);        ProtocolStackConfigurator returnValue;        // Attempt to treat the properties string as a pointer to an XML        // configuration.        XmlConfigurator configurator = null;        try {            configurator=getXmlConfigurator(properties);        }        catch (IOException ioe) {            throw createChannelConfigurationException(ioe);        }        // Did the properties string point to a JGroups XML configuration?        if (configurator != null) {            returnValue=configurator;        }        else {            // Attempt to process the properties string as the old style            // property string.            returnValue=new PlainConfigurator(properties);        }        return returnValue;    }