class GAVPreferences implements BasePreference<GAVPreferences> {

    @Override
    public GAVPreferences defaultValue(final GAVPreferences defaultValue) {
        //GWT complains in SuperDevMode if the static constants are used; so we have to use a literal
        final String conflictingGAVCheckDisabledSystemProperty = System.getProperty("org.guvnor.project.gav.check.disabled",
                                                                                    "false");
        final boolean conflictingGAVCheckDisabled = Boolean.parseBoolean(conflictingGAVCheckDisabledSystemProperty);

        defaultValue.setConflictingGAVCheckDisabled(conflictingGAVCheckDisabled);

        //GWT complains in SuperDevMode if the static constants are used; so we have to use a literal
        final String childGAVEditEnabledSystemProperty = System.getProperty("org.guvnor.project.gav.child.edit.enabled",
                                                                            "false");
        final boolean childGAVEditEnabled = Boolean.parseBoolean(childGAVEditEnabledSystemProperty);

        defaultValue.setChildGAVEditEnabled(childGAVEditEnabled);

        return defaultValue;
    }

}