Implement Handle class based on the document