Object getValue(String key) { if (contains(key)) { return internalState[key] as Object; } else { return null; } }