Extended api of ExPendingCommandFactory2 a bit.
Added mapping utility to make a ExPendingCommandFactory2 out of a
PendingCommandFactory for temporary backward compatibility.