/** * Create the guild instance for the city. * @param city where to create a guild * @return new guild instance */ public IGuild createGuild(ICity city) { IGuild guild = (IGuild) context.getBean("guild", new Object[]{city}); guildList.add(guild); return guild; }