String rest = (String) a.get("rest");
String namespace = (String) a.get("ns");
if (namespace == null) namespace = (String) a.get("namespace");
ModelComponent modelComponent = new ModelComponent(request, table, factory);
if (namespace != null) modelComponent.setNamespace(namespace);
if (modelName != null) modelComponent.setModelName(modelName);
if (include != null) modelComponent.setInclude(include);
if (exclude != null) modelComponent.setExclude(exclude);
if (associations != null) modelComponent.setAssociations(associations);
if (entityId != null) modelComponent.setEntityId(entityId);
if (entityKey != null) modelComponent.setEntityKey(entityKey);
if (entityValue != null) modelComponent.setEntityValue(entityValue);
if (rest != null && !rest.equals("false")) {
modelComponent.setRest(rest);
}
context.getResponseWriter().write(modelComponent.toString());
}