implements setValueFromCommand method