public ConfigItemSMS getSMS(final String text) {
try {
final ConfigItemSysParameter config = CollectionUtils.getFirst(
ConfigurationFileUtils.getInstance().getConfigParams(text));
if (null != config) {
final ConfigItemSMS result = new ConfigItemSMS(config);
if (null != result) {
final boolean valid = StringUtils.hasText(result.getMethod())
&& StringUtils.hasText(result.getHost());
return valid ? result : null;
}
}
} catch (Throwable t) {
// invalid xml text