/** Constructor. Set the server name from server instance. */
 protected XmppIoHandler() {
   serverName = XmppServer.getInstance().getServerName();
 }
 /** Constructor. Set the server name from server instance. */
 protected XmppIoHandler() {
   System.out.println("XmppIoHandler");
   serverName = XmppServer.getInstance().getServerName();
 }
 /**
  * Obtains the user service.
  *
  * @return the user service
  */
 public static UserService getUserService() {
   return (UserService) XmppServer.getInstance().getBean(USER_SERVICE);
 }
 public static NotificationService getNoticationService() {
   return (NotificationService) XmppServer.getInstance().getBean(NOTIFICATION_SERVICE);
 }
 /**
  * Generic method to obtain a service object for a given name.
  *
  * @param name the service bean name
  * @return
  */
 public static Object getService(String name) {
   return XmppServer.getInstance().getBean(name);
 }