public void setProperties(String prefix, Properties props) { String prettyName = PrettyNameProperty; setPropertyPrefix(prefix);  String realPrefix = PropUtils.getScopedPropertyPrefix(prefix);  prettyName = realPrefix + PrettyNameProperty;  String defaultName = getName(); if (defaultName == null) { defaultName = "Anonymous"; }  setName(props.getProperty(prettyName, defaultName));  setAddToBeanContext(PropUtils.booleanFromProperties(props, realPrefix + AddToBeanContextProperty, addToBeanContext));  setAddAsBackground(PropUtils.booleanFromProperties(props, realPrefix + AddAsBackgroundProperty, addAsBackground));  autoPalette = PropUtils.booleanFromProperties(props, realPrefix + AutoPaletteProperty, autoPalette);
public void setProperties(Properties props) { setProperties(getPropertyPrefix(), props);
    public void setProperties(String prefix, Properties props) {	String prettyName = PrettyNameProperty;	setPropertyPrefix(prefix);	String realPrefix = PropUtils.getScopedPropertyPrefix(prefix);	prettyName = realPrefix + PrettyNameProperty;		String defaultName = getName(); 	if (defaultName == null) {	    defaultName = "Anonymous";	}	setName(props.getProperty(prettyName, defaultName));	setAddToBeanContext(PropUtils.booleanFromProperties(props, realPrefix + AddToBeanContextProperty, addToBeanContext));	setAddAsBackground(PropUtils.booleanFromProperties(props, realPrefix + AddAsBackgroundProperty, addAsBackground));	autoPalette = PropUtils.booleanFromProperties(props, realPrefix + AutoPaletteProperty, autoPalette);    }