PresenceEventPackage presence = new PresenceEventPackage();
LocationService locationService = new LocationService();
RegEventPackage regEventPackage = new RegEventPackage(locationService);
WatcherInfoEventPackage watcherInfo = new WatcherInfoEventPackage(presence);
XcapService xcapService = new XcapService();
XcapPolicyManager policyManager = new XcapPolicyManager(xcapService);
FileXcapDao xcapDao = new FileXcapDao();
String baseDir = System.getProperty(XCAP_BASE_DIR_PROPERTY);
if (baseDir != null)
xcapDao.setBaseDir(new File(baseDir));