private void setAdminCredentials(String adminPassword) throws XMLDBException { Collection root = DatabaseManager.getCollection(uri + DBBroker.ROOT_COLLECTION, username, pass);
private void setAdminCredentials(String adminPassword) throws XMLDBException, URISyntaxException { XmldbURI dbUri; if (!uri.endsWith(DBBroker.ROOT_COLLECTION)) dbUri = XmldbURI.xmldbUriFor(uri + DBBroker.ROOT_COLLECTION); else dbUri = XmldbURI.xmldbUriFor(uri); Collection root = DatabaseManager.getCollection(dbUri.toString(), username, pass);
	private void setAdminCredentials(String adminPassword) throws XMLDBException {		Collection root = DatabaseManager.getCollection(uri + DBBroker.ROOT_COLLECTION, username, pass);		UserManagementService mgmt = (UserManagementService)			root.getService("UserManagementService", "1.0");		User dba = mgmt.getUser(SecurityManager.DBA_USER);		dba.setPassword(adminPassword);		mgmt.updateUser(dba);				pass = adminPassword;	}