class MultiAxisQueryBuilder extends ClientQueryBuilder {

    public static ClientExpandable expansion(String id, boolean isExpanded) {
        ClientExpandable expandable = id.startsWith(PATH_SEPARATOR)
                ? new ClientMemberExpansion()
                        .setPath(sanitizePathList(asList(id.split(PATH_SEPARATOR))))

                : new ClientLevelExpansion()
                        .setLevelReference(id);

        return expandable.setExpanded(isExpanded);
    }

}