()
| 173 | } |
| 174 | |
| 175 | private static String getCustomDomain() { |
| 176 | String config = System.getProperty(Cat.CLIENT_CONFIG); |
| 177 | |
| 178 | if (StringUtils.isNotEmpty(config)) { |
| 179 | try { |
| 180 | ClientConfig clientConfig = DefaultSaxParser.parse(config); |
| 181 | |
| 182 | return clientConfig.getDomain(); |
| 183 | } catch (Exception e) { |
| 184 | // ignore |
| 185 | } |
| 186 | } |
| 187 | return null; |
| 188 | } |
| 189 | |
| 190 | public static Cat getInstance() { |
| 191 | return instance; |
no test coverage detected