getModel

Gets the model under the given path or throws an exception if it does not exist.