public static DependencyVersion parseVersion(String text) {
        return parseVersion(text, false);
    }
@Test
    public void testParseVersion_String_boolean() {
        //cpe:/a:playframework:play_framework:2.1.1:rc1-2.9.x-backport
        String text = "2.1.1.rc1.2.9.x-backport";
        boolean firstMatchOnly = false;
        DependencyVersion expResult;
        DependencyVersion result = DependencyVersionUtil.parseVersion(text, firstMatchOnly);
        assertNull(result);
        firstMatchOnly = true;
        expResult = DependencyVersionUtil.parseVersion("2.1.1.rc1");
        result = DependencyVersionUtil.parseVersion(text, firstMatchOnly);
        assertEquals(expResult, result);

        result = DependencyVersionUtil.parseVersion("1.0.0-RC", firstMatchOnly);
        assertEquals(4, result.getVersionParts().size());
        assertEquals("rc", result.getVersionParts().get(3));

        result = DependencyVersionUtil.parseVersion("1.0.0-RC2", firstMatchOnly);
        assertEquals(4, result.getVersionParts().size());
        assertEquals("rc2", result.getVersionParts().get(3));
    }