private Agent createAgent(TSAgent agent) {
    if (agent == null) {
      return null;
    }

    return (Agent) TsapiCreateObject.getTsapiObject(agent, true);
  }
  private Address createAddress(TSDevice device) {
    if (device == null) {
      return null;
    }

    return (Address) TsapiCreateObject.getTsapiObject(device, true);
  }