Addapted RichWPSProvider to work with commons c561d.