if (subscription.getRepository() != null) {
cartridge.setRepoURL(subscription.getRepository().getUrl());
}
if (subscription instanceof DataCartridgeSubscription) {
DataCartridgeSubscription dataCartridgeSubscription = (DataCartridgeSubscription) subscription;
cartridge.setDbHost(dataCartridgeSubscription.getDBHost());
cartridge.setDbUserName(dataCartridgeSubscription
.getDBUsername());
cartridge
.setPassword(dataCartridgeSubscription.getDBPassword());
}
if (subscription.getLbClusterId() != null
&& !subscription.getLbClusterId().isEmpty()) {
cartridge.setLbClusterId(subscription.getLbClusterId());