why not just use Targetprocess.password, Targetprocess.username instead of credentials? That's way we can get rid of configuration class which seems useless to me. At the same time we can keep configure method syntax as it is now.