/** * Process an entity and add any additional data that needs to be added prior to marshalling * This method will both single entities and lists of entities * @param object */ @SuppressWarnings("rawtypes") protected void preMarshallEntity(Object object) { if (object instanceof List) { for (Object o : ((List) object)) { preMarshallIndividualEntity(o); } } else { preMarshallIndividualEntity(object); } }
/** * Process an entity and add any additional data that needs to be added prior to marshalling * This method will both single entities and lists of entities * @param object */ @SuppressWarnings("rawtypes") protected void preMarshallEntity(Object object) { if (object instanceof List) { for (Object o : ((List) object)) { preMarshallIndividualEntity(o); } } else { preMarshallIndividualEntity(object); } }