Moving echoPermissibleObject to REST