public Task create(String tenantId, ResourceTicketCreateSpec spec) throws ExternalException {
    TaskEntity taskEntity = resourceTicketBackend.createResourceTicket(tenantId, spec);
    Task task = taskBackend.getApiRepresentation(taskEntity);

    return task;
  }
 public ResourceList<ResourceTicket> find(String tenantId, Optional<String> name)
     throws ExternalException {
   return new ResourceList<>(resourceTicketBackend.filter(tenantId, name));
 }
 public ResourceTicket get(String id) throws ResourceTicketNotFoundException {
   return resourceTicketBackend.getApiRepresentation(id);
 }