code: public WorkspaceEntry getWorkspaceEntry(String wsName)
     {
        for (WorkspaceEntry entry : config.getWorkspaceEntries())
        {
           if (entry.getName().equals(wsName))
              return entry;
        }
        return null;
     }
docs: Get workspace configuration entry by name.
  
  @param wsName
  workspace name
  @return WorkspaceEntry