public static String getLastPart(final String path) {
        if (path == null) {
            return null;
        }
        final int index = path.lastIndexOf('/');
        if (index >= 0) {
            return path.substring(index + 1);
        }
        else {
            return null;
        }
    }
Check if the given path exists
metamorphosis-commons/src/main/java/com/taobao/metamorphosis/utils/ZkUtils.java