refractored processfactory and added ability to specify resource used in Blocking Process type.