public String getOneLineReplacement(String text) {
        String[] r = getReplacement(text);
        if (r.length != 1) {
            throw new IllegalStateException("Expecting a single string but got " + Arrays.toString(r));
        } else {
            return r[0];
        }
    }
Check if the specified text is matching some conversions rules. 
If a rule matches, ask for line replacement.

<p>In case no rule can be applied, then the input text is
returned without change.

@param text
@return String
slf4j-migrator/src/main/java/org/slf4j/migrator/line/LineConverter.java