Add getResource by id.