Setting up an object from with a method call seems to me only possible in the most trivial cases. Perhaps you'll have a bit higher success rate if your objects are nothing more than wrappers around a bag of variables, but in general, I can't see how this should work.