class BBInputSetupUtils {

    protected CloudRegion getCloudRegion(CloudConfiguration cloudConfiguration) {
        if (cloudConfiguration != null) {
            String cloudRegionId = cloudConfiguration.getLcpCloudRegionId();
            String cloudOwner = cloudConfiguration.getCloudOwner();
            if (cloudRegionId != null && cloudOwner != null && !cloudRegionId.isEmpty() && !cloudOwner.isEmpty()) {
                return injectionHelper.getAaiClient()
                        .get(CloudRegion.class, AAIUriFactory.createResourceUri(
                                AAIFluentTypeBuilder.cloudInfrastructure().cloudRegion(cloudOwner, cloudRegionId))
                                .depth(Depth.TWO))
                        .orElse(null);

            } else {
                return null;
            }
        } else {
            return null;
        }
    }

}