}
if (allRequestParams.containsKey("key")) {
modelQuery.modelKey(allRequestParams.get("key"));
}
if (allRequestParams.containsKey("version")) {
modelQuery.modelVersion(Integer.valueOf(allRequestParams.get("version")));
}
if (allRequestParams.containsKey("latestVersion")) {
boolean isLatestVersion = Boolean.valueOf(allRequestParams.get("latestVersion"));
if (isLatestVersion) {
modelQuery.latestVersion();