subroutine updateWithRouteHandle(self, target, root_key, keywordEnforcer, rc)
class(ESMF_InfoDescribe), intent(inout) :: self
type(ESMF_RouteHandle), intent(in) :: target
character(*), intent(in) :: root_key
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
integer, intent(inout), optional :: rc
character(ESMF_MAXSTR) :: name
integer :: localrc
character(*), parameter :: etype="RouteHandle"
type(ESMF_Base) :: newbase
if (present(rc)) rc = ESMF_RC_NOT_IMPL
call ESMF_RouteHandleGet(target, name=name, rc=localrc)
if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
call ESMF_RouteHandleGetThis(target, newbase%this, rc=localrc)
if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
call self%updateGeneric(root_key, name, etype, newbase, base_is_valid=.false., rc=localrc)
if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
if (present(rc)) rc = ESMF_SUCCESS
end subroutine updateWithRouteHandle