/** * Creates the congfiguration instance. * * @return the congfiguration instance. */ public LinkConstructorStrategyConfig build() { if (reportLocation == null) { throw new IllegalArgumentException( "The report location must not be 'null'"); } if (StringUtils.isBlank(labelKey)) { throw new IllegalArgumentException( "The label for the link must not be blank."); } return new LinkConstructorStrategyConfig(this); }