Understanding the law on deprivation of liberty in the community