@Override
public void addExecutionEngine(String name, String address)
{
try
{
JerseyServer server = new JerseyServer(address);
DataRequestExecutionResource drer =
server.getDataRequestExecutionResource(
new ResourceID("DataRequestExecutionResource"));
//set EE details
SimpleLocation location = new SimpleLocation(drer);
addExecutionEngine(name, location);
ResourceID[] resources =
server.listResources(ResourceType.DATA_RESOURCE);
for (ResourceID resourceID : resources)
{
String dataResourceName = name + "_" + resourceID;
//set data source mapping
addDataSourceMapping(dataResourceName, name);