- restored removing url from the args map in newResourceFromArgs,
 - some types introduced where needed
explaining why it DOES NOT WORK in war deployments, DON'T MERGE THIS BRANCH INTO MASTER yet