log.finer("assertPrincipals(Principal, String)");
    private static void validateClient(Principal pCurrent, Session session)    throws SessionException, RemoteException {	log.finer("assertPrincipals(Principal, String)");			// Get current service name.		String serviceName = null;		if (pCurrent != null)			serviceName = pCurrent.getName();		if (serviceName == null) {			log.severe("Empty service name");			throw new RemoteException("Empty service name");		}			/* Check if the current web service is the one that originally created this		 * session. */		if (!session.getWebService().getId().equals(serviceName)) {			log.warning("Web service '"+serviceName+"' failed authorization");			throw new RemoteException("Web service '"+serviceName+"' failed authorization");		}				// Seems the web service is validated after all.	    log.info("Web service '"+serviceName+"' passed validation; session ID is "+session.getID());        }