Added method getRights.