Promise<Object> (@NotNull PlaybackContext context) { final String[] keyValue = getText().substring(PREFIX.length()).trim().split("="); if (keyValue.length != 2) { context.error("Expected expresstion: " + PREFIX + " key=value", getLine()); return Promises.rejectedPromise(); } final String key = keyValue[0]; final String value = keyValue[1]; context.storeRegistryValue(key); Registry.get(key).setValue(value); return Promises.resolvedPromise(); }