code: private static boolean isRepoWS(String parameter)
     {
        String repWS = parameter;
        repWS = repWS.replaceAll("\\\\", "/");
  
        if ( !repWS.matches("[/][^/]+") && !repWS.matches("[/][^/]+[/][^/]+"))
        {
           return false;
        }
        else
        {
           return true;
        }
     }
docs: Check is "/repo" or "/repo/ws" parameter.
  
  @param parameter
  String, parameter.
  @return Boolean
  return "true" if it "/repo" or "/repo/ws" parameter