public RestService build(WsdlProject project, InterfaceConfig config) {
return new RestService(project, (RestServiceConfig) config.changeType(RestServiceConfig.type));
}
public RestService createNew(WsdlProject project, String name) {
RestServiceConfig config = (RestServiceConfig) project.getConfig().addNewInterface()
.changeType(RestServiceConfig.type);
RestService iface = new RestService(project, config);
iface.setName(name);
return iface;