provisionData.setValidation(fromDataModel(api.getValidation()));
provisionData.setHeaderTransEnabled(api.getHeaderTransEnabled());
provisionData.setInternal(api.getInternal());
ApiProxySettings proxySettings = null;
if(api.isUseGlobalProxy()){
proxySettings = new ApiProxySettings();
proxySettings.setGlobalProxy(new ApiProxySettings.GlobalProxy());
}else if(api.getForwardProxy() != null){
proxySettings = new ApiProxySettings();
proxySettings.setLocalProxy(fromDataModel(api.getForwardProxy()));
}
provisionData.setProxySettings(proxySettings);
return provisionData;
}