based on commons new resource resolver