class WorkspacesImpl implements Workspaces {

  @Override
  public Workspace byName(String name) throws WorkspaceNotFoundException {
    List<Workspace> allWorkspaces = all();
    for (Workspace workspace : allWorkspaces) {
      if (workspace.getName().equals(name)) {
        return workspace;
      }
    }
    throw new WorkspaceNotFoundException("Could not find workspace named '" + name + "'");
  }

  public  WorkspacesImpl(Configuration conf, RestClient restClient);

}