Changed method to get classname and namespace from worker files