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