public static Integer parseRestBindPortFromWebInterfaceUrl(String webInterfaceUrl) {
        if (webInterfaceUrl != null) {
            final int lastColon = webInterfaceUrl.lastIndexOf(':');

            if (lastColon == -1) {
                return -1;
            } else {
                try {
                    return Integer.parseInt(webInterfaceUrl.substring(lastColon + 1));
                } catch (NumberFormatException e) {
                    return -1;
                }
            }
        } else {
            return -1;
        }
    }
@Test
    void testParseRestBindPortFromWebInterfaceUrlWithEmptyUrl() {
        assertThat(ResourceManagerUtils.parseRestBindPortFromWebInterfaceUrl("")).isEqualTo(-1);
    }