BOSTON (AP) — State officials are beginning a process that will lead to implementation of a tough new anti-foreclosure law in Massachusetts.

The bill signed by Gov. Deval Patrick earlier this month requires mortgage lenders to offer modifications to some loans that are deemed as "risky." It also bans lenders from pursuing foreclosures without proper documentation.

The state Division of Banks has scheduled a public hearing for Wednesday in Boston as it gathers input for the specific rules and regulations that will guide the new law.

The measure requires lenders to assess a borrower's circumstances and determine whether the net value in changing an existing loan is more than the anticipated recovery from foreclosure. If so, the lender is required to offer a loan modification to the borrower.