public synchronized void removeUser(YPersistenceManager pmgr, String inSessionUserID, String userNameToDelete) throws YAuthenticationException, YPersistenceException {
if(inSessionUserID.equals(userNameToDelete)) {
throw new YAuthenticationException("Users cannot delete oneself.");
}
if(null == _users.get(inSessionUserID)){
throw new YAuthenticationException("The user trying to delete is not a user.");
}
List connections = new ArrayList(_connections.values());
for (int i = 0; i < connections.size(); i++) {
Connection connection = (Connection) connections.get(i);
if(connection._userid.equals(userNameToDelete)){