return map;
return newAttrs;
    public HashMap getAttributes(String id)    throws MoriaException {        log.finer("getAttributes(String)");        	AuthenticationIF service = (AuthenticationIF)stub;        try {                        // Map from Attribute array to HashMap.            Attribute[] oldAttrs = service.getAttributes(id);            HashMap newAttrs = new HashMap(oldAttrs.length);            for (int i=0; i<oldAttrs.length; i++) {                String[] oldVals = oldAttrs[i].getValues();                Vector newVals = new Vector(oldVals.length);                for (int j=0; j<oldVals.length; j++)                    newVals.add(oldVals[j]);                newAttrs.put(oldAttrs[i].getName(), newVals);            }            return map;                    } catch (RemoteException e) {            log.severe("RemoteException caught and re-thrown as MoriaException");            throw new MoriaException("RemoteException caught", e);        }    }