add Resource::getId()