@Override public void loadWoofTeamsUsage(WoofTeamsUsageContext context) throws Exception { // Obtain the architect and extension context OfficeArchitect architect = context.getOfficeArchitect(); // Load the teams this.loadWoofTeams(() -> context.getConfiguration(), () -> architect.enableAutoWireTeams(), (teamName, teamSize, teamSourceClassName, typeQualifications, teamModel) -> { // Add the team OfficeTeam team = architect.addOfficeTeam(teamName); // Load the type qualification for (AutoWire autoWire : typeQualifications) { team.addTypeQualification(autoWire.getQualifier(), autoWire.getType()); } }); }