public Builder nameLike(String glob) { ArgumentChecker.notEmpty(glob, "glob"); if (_nameLikePattern != null) { throw new IllegalStateException("nameLike() can only be called once"); } if (_names != null) { throw new IllegalStateException( "Can't specify exact name and a regular expression for the name"); } if (_nameMatchPattern != null) { throw new IllegalStateException( "Can't specify exact name and a regular expression for the name"); } _nameLikePattern = RegexUtils.globToPattern(glob); return this; }