class SdxConverter {

    public SharedServiceV4Request getSharedService(SdxClusterResponse sdx) {
        if (sdx == null) {
            LOGGER.info("We don't attach the cluster to any Datalake, because the environment has not SDX. So we continue the creation as simple WORKLOAD.");
            return null;
        }
        if (sdx.getStatus() != SdxClusterStatusResponse.RUNNING) {
            throw new BadRequestException(String.format("Datalake should be running state. Current state is '%s' instead of Running", sdx.getStatus()));
        }
        return getSharedServiceV4Request(sdx);
    }

}