}
return engineSettingValueForm;
}
public PaymentGatewayForm buildPaymentGatewayForm(final MarketArea marketArea, final AbstractPaymentGateway paymentGateway) throws Exception {
final PaymentGatewayForm paymentGatewayForm = new PaymentGatewayForm();
if(paymentGateway != null){
paymentGatewayForm.setId(paymentGateway.getId().toString());
paymentGatewayForm.setVersion(paymentGateway.getVersion());
paymentGatewayForm.setCode(paymentGateway.getCode());
paymentGatewayForm.setName(paymentGateway.getName());
paymentGatewayForm.setDescription(paymentGateway.getDescription());
paymentGatewayForm.setActive(paymentGateway.getMarketAreas().contains(marketArea));
}
return paymentGatewayForm;
}