public static RegexParser deserialize()

in regex-parser/src/jetbrains/teamcity/util/regex/RegexParser.java [120:133]


  public static RegexParser deserialize(@NotNull final String xml) throws ParserLoadingException {
    if (xml.isEmpty()) {
      throw new ParserLoadingException("Parser configuration xml is empty");
    }
    try {
      RegexParser parser = XStreamWrapper.deserializeObject(RegexParser.class.getClassLoader(), xml, ourXStreamHolder.getValue());
      if (parser == null) {
        throw new ParserLoadingException("Loaded parser is null");
      }
      return parser;
    } catch (XStreamException e) {
      throw new ParserLoadingException("Cannot deserialize parser configuration: " + e.getMessage(), e);
    }
  }