Pope Benedict XVI appointed the cleric last month , after his previous choice , Stanislaw Wielgus , resigned , admitting he had worked with Poland 's dreaded communist-era police for two decades beginning in the 1960s .