I'm not entirely sure what you're trying to accomplish, but why can't you write a single converter that - when called - branches to use one or the other way to deserialize, based on a global variable that represents the environment the code is running in?