class FeatureActivator {

    public boolean isEnabledByDefault(String code) throws IllegalArgumentException {
        if (!this.defaultStates.containsKey(code)) {
            throw new IllegalArgumentException("Unknown code : " + code);
        }
        return this.defaultStates.get(code);
    }

}