If a model is passed to getObjectByName, return the model