protected function validateSimpleAction( EarthIT_CMIPREST_RESTAction $act ) {
		if( $act instanceof EarthIT_CMIPREST_RESTAction_ResourceAction ) {
			$rc = $act->getResourceClass();
			if( !$rc->hasRestService() ) {
				throw new EarthIT_CMIPREST_ResourceNotExposedViaService($act, array('message'=>"'".$rc->getName()."' records are not exposed via services"));
			}
		} else if( $act instanceof EarthIT_CMIPREST_RESTAction_InvalidAction ) {
			throw new EarthIT_CMIPREST_ActionInvalid($act, $act->getErrorDetails());
		} else {
			throw new EarthIT_CMIPREST_ActionInvalid($act, array(array(
				'class' => 'ClientError/ActionInvalid',
				'message' => 'Unrecognized action class: '.get_class($act)
			)));
		}
	}