class V09Support {

    static String convertToV09(String agentRollupId) {
        if (agentRollupId.endsWith("::")) {
            return agentRollupId.substring(0, agentRollupId.length() - 2).replace("::", "/");
        }
        int index = agentRollupId.lastIndexOf("::");
        if (index == -1) {
            return agentRollupId;
        } else {
            return agentRollupId.substring(index + 2);
        }
    }

}