public static MessageConfig parse(InputStream inputStream){
        try {
            JAXBContext jaxbContext=JAXBContext.newInstance(MessageConfig.class);
            Unmarshaller unmarshaller=jaxbContext.createUnmarshaller();
            MessageConfig messageConfig= (MessageConfig) unmarshaller.unmarshal(inputStream);
            return messageConfig;
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }