public static StringUtils.Pair splitByFirstLineFeed(String text) {
        String left = "";
        String right = "";
        if (text != null) {
            int pos = text.indexOf('\n');
            if (pos != -1) {
                left = text.substring(0, pos).trim();
                right = text.substring(pos).trim();
            } else {
                left = text.trim();
            }
        }
        return StringUtils.pair(left, right);
    }
@Test
    void testSplitByFirstLineFeed() {
        assertEquals(new Pair("", ""),
                StringUtils.splitByFirstLineFeed(null));
        assertEquals(new Pair("foo", ""),
                StringUtils.splitByFirstLineFeed("foo"));
        assertEquals(new Pair("foo", "bar"),
                StringUtils.splitByFirstLineFeed("foo\nbar"));
    }