Controllable Josephson current through a pseudospin-valve structure