class GatewayConvertUtil {

    public void setGatewayPathAndSsoProvider(GatewayV4Request source, Gateway gateway) {
        if (source.getPath() != null) {
            gateway.setPath(source.getPath());
        }
        if (gateway.getSsoProvider() == null) {
            gateway.setSsoProvider('/' + gateway.getPath() + "/sso/api/v1/websso");
        }
    }

}