final ParameterizedType pt = (ParameterizedType) genericType;
modelType = (Class) pt.getActualTypeArguments()[0];
}
for (int i = 0; i < array.length(); i++) {
JSONObject o = array.getJSONObject(i);
RestModel model = (RestModel) CompositeUtil.instance().unmarshallClass(locale, modelType, o);
Set<ConstraintViolation<RestModel>> cv = CompositeUtil.instance()
.validateRestModel(locale, model);
if (!cv.isEmpty()) {
final Response response = Response.status(Status.BAD_REQUEST)
.entity(CompositeUtil.instance().getValidationFailureMessages(locale, cv, model))