public void setClerkAuthenticationTokensInSession(String username) throws ConfigurationException {
HttpServletRequest request = getThreadLocalRequest();
HttpSession session = request.getSession();
//upon success obtain tokens from other registries
UDDIClerkManager manager = WebHelper.getUDDIClerkManager(session.getServletContext());
Map<String, UDDIClerk> clerks = manager.getClientConfig().getUDDIClerks();
for (UDDIClerk clerk : clerks.values()) {
//only setting token for the clerks of the current user/publisher
if (username.equals(clerk.getPublisher())) {
try {
if (session.getAttribute("token-" + clerk.getName())==null) {