class DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator {

    static String getResourceId(final String rawUrl) {
        final String url = separatorsToUnix(rawUrl);
        int pos = url.lastIndexOf('/');
        if (pos == -1) {
            pos = url.indexOf(':');
        }
        final String lastIdPart;
        if (pos != -1) {
            lastIdPart = url.substring(pos + 1);
        } else {
            lastIdPart = url;
        }
        return lastIdPart;
    }

}