throw new IllegalArgumentException("feature is empty"); //NOI18N
}
- // Default is not enabled
- boolean isEnabled = false;
-
// Get value from property
final String contextParameter = this.getStringContextParameter(String.format("is_feature_%s_enabled", feature)); //NOI18N
- // Is the context parameter found?
- if (contextParameter instanceof String) {
- // Is it set?
- isEnabled = (Boolean.parseBoolean(contextParameter) == Boolean.TRUE);
- }
+ // Default is not enabled
+ final boolean isEnabled = (Boolean.parseBoolean(contextParameter) == Boolean.TRUE);
// Return status
return isEnabled;