private String workspace(String repositoryId) {
        CheckArg.isNotNull(repositoryId, "repositoryId"); // if can be user-supplied, or 'assert repositoryId != null' if not user supplied
        repositoryId = repositoryId.trim();
        String[] parts = repositoryId.split(":");
        int numParts = parts.length;

        if (numParts > 1) {
            // Just take the second part
            return parts[1].trim(); // may be blank
        }
        return null;
    }
private String workspace ( String repositoryId ) { CheckArg . isNotNull ( repositoryId , "repositoryId" ) ; repositoryId = repositoryId . trim ( ) ; String [ ] parts = repositoryId . split ( ":" ) ; int numParts = parts . length ; if ( numParts > 1 ) { return parts [ 1 ] . trim ( ) ; } return null ; }
@param repositoryId The repositoryId
@return The workspace. If {@code repositoryId} is a single word (i.e. not
colon-separated), then it is assumed that the {@code repositoryId}
argument only represents the repository name and this method will return
{@code null} for the workspace.