// If the key is the default, fallback to the injected default key
if(profile == null && key.isDefaultKey() && this.defaultProfile != null)
profile = (ProfileContext) controller.getContext(this.defaultProfile, null);
if(profile == null)
throw new NoSuchProfileException("No such profile: " + key);
return profile.getProfile();
}