}
protected Service createDynamicService() {
Service dynamicService = assemblyFactory.createService();
dynamicService.setName("$dynamic$");
InterfaceContract dynamicInterfaceContract = new InterfaceContractImpl() {};
Interface dynamicInterface = new InterfaceImpl() {
@Override
public boolean isDynamic() {
return true;
}
};
Operation dynamicOperation = assemblyFactory.createOperation();
dynamicOperation.setDynamic(true);
dynamicInterface.getOperations().add(dynamicOperation);
dynamicInterfaceContract.setInterface(dynamicInterface);
dynamicService.setInterfaceContract(dynamicInterfaceContract);
return dynamicService;
}