restService = (RestService) existingInterface;
}
}
if (restService == null) {
restService = (RestService) project.addNewInterface(host, RestServiceFactory.REST_TYPE);
restService.addEndpoint(restURIParser.getEndpoint());
}
if (creationStrategy == ModelCreationStrategy.REUSE_MODEL) {
RestResource existingResource = restService.getResourceByFullPath(RestResource.removeMatrixParams(resourcePath));
if (existingResource != null) {
return existingResource;