class FeatureActivator {

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

}