cat.debug(">test01CreateNewUser()");
log.debug(">test01CreateNewUser()");
    public void test01CreateNewUser() throws Exception {        cat.debug(">test01CreateNewUser()");        // Make user that we know...        boolean userExists = false;        try {            UserDataRemote createdata = userhome.create("foo", "foo123", "C=SE, O=AnaTom, CN=foo");            assertNotNull("Failed to create user foo", createdata);            createdata.setType(SecConst.USER_ENDUSER);            createdata.setSubjectEmail("foo@anatom.se");            cat.debug("created user: foo, foo123, C=SE, O=AnaTom, CN=foo");        } catch (RemoteException re) {            if (re.detail instanceof DuplicateKeyException) {                userExists = true;            }        } catch (DuplicateKeyException dke) {            userExists = true;        }        if (userExists) {            cat.debug("user foo already exists.");            UserDataPK pk = new UserDataPK("foo");            UserDataRemote data = userhome.findByPrimaryKey(pk);            data.setStatus(UserDataRemote.STATUS_NEW);            cat.debug("Reset status to NEW");        }        cat.debug("<test01CreateNewUser()");    }