// so delete the old one. It a TModelKey isn't specified then
// this is a new TModel so create a new TModelKey for it.
if ((tModelKey != null) && (tModelKey.length() > 0))
dataStore.deleteTModel(tModelKey);
else
tModel.setTModelKey("uuid:"+uuidgen.uuidgen());
// Everything checks out so let's save it. First store
// 'authorizedName' and 'operator' values in each TModel.
tModel.setAuthorizedName(authorizedName);
tModel.setOperator(Config.getOperator());