Result result2 = new CollectionResult();
result2.setType(theInstanceType);
findAllOperation.setResult(result2);
findAllOperation.setQueryHandler(nqh2);
xrServiceModel.getOperations().put(findAllOperation.getName(), findAllOperation);
InsertOperation insertOperation = new InsertOperation();
insertOperation.setName(CREATE_OPERATION_NAME + "_" + tablenameAlias);
Parameter theInstance = new Parameter();
theInstance.setName(THE_INSTANCE_NAME);
theInstance.setType(theInstanceType);
insertOperation.getParameters().add(theInstance);
xrServiceModel.getOperations().put(insertOperation.getName(), insertOperation);
UpdateOperation updateOperation = new UpdateOperation();
updateOperation.setName(UPDATE_OPERATION_NAME + "_" + tablenameAlias);
updateOperation.getParameters().add(theInstance);
xrServiceModel.getOperations().put(updateOperation.getName(), updateOperation);
DeleteOperation deleteOperation = new DeleteOperation();