Fix and important error related to threads race. Added support for uppercase resource transformation