code: private void putDocument(boolean update) {
  		XDMClientChildSbbLocalObject child = (XDMClientChildSbbLocalObject) this
  				.getXDMClientChildSbbChildRelation().get(ChildRelationExt.DEFAULT_CHILD_NAME);
  		String assertedIdentity = null;
  		try {
  			InputStream is = this.getClass().getResourceAsStream("example.xml");
  			StringWriter writer = new StringWriter();
  			char[] buffer = new char[1024];
  			try {
  				BufferedReader reader = new BufferedReader(
  						new InputStreamReader(is, "UTF-8"));
  				int n;
  				while ((n = reader.read(buffer)) != -1) {
  					writer.write(buffer, 0, n);
  				}
  			} finally {
  				is.close();
  			}
  			String content = writer.toString();
  			if (update) {
  				content = content.replaceAll("presence.oma",
  						"presence.restcomm");
  			}
  			child.put(createURI(), "application/rls-services+xml",
  					content.getBytes(), assertedIdentity);
  		} catch (IOException e) {
  			tracer.severe("failed to put doc", e);
  		}
  	}
docs: aux