class AuthzHelper {

    public static String extractResourceDomainName(final String resource) {
        int idx = resource.indexOf(':');
        if (idx == -1) {
            return null;
        }
        return resource.substring(0, idx);
    }

}