@Override public void closeRoom(String room) throws OKMException { updateSessionManager(); String user = getThreadLocalRequest().getRemoteUser(); try { if (user != null) { manager.closeRoom(user, room); } } catch (PrincipalAdapterException e) { log.error(e.getMessage(), e); throw new OKMException( ErrorCode.get(ErrorCode.ORIGIN_OKMChatService, ErrorCode.CAUSE_PrincipalAdapter), e.getMessage()); } }