question: private boolean workspaceValid ( String workspaceName ) { if ( isDefaultWorkspace ( workspaceName ) ) { return true ; } return Pattern . matches ( "\\w+" , workspaceName ) ; }
target:  Check if Workspace name is valid, e.g can't contain spaces.