A Polish court has found a Roman Catholic priest guilty of sexually abusing underage boys and sentenced him to seven years in prison.

In its ruling Tuesday, the court in the western Polish city of Wroclaw also forbade the 44-year-old from working with young people for the rest of his life and ordered that he undergo psychological treatment.

The priest was only identified as Pawel K., in line with Polish privacy laws.

He was arrested in December 2012 in a Wroclaw hotel, where he had checked in with a teenage boy, which aroused the suspicion of hotel workers.

The judge, Maciej Skorniak, said his guilt was not in doubt due to the testimony of a large number of victims. Images of his victims were also found on his computer.