Added transport factory support to custom handlers