String className = packet.getClass().getName();
className = className.replace("com.art.anette.common.network.", "");
logger.info(String.format("%s: %s %s", prefix, className, packet.toString()));
if (packet instanceof DataRequest) {
DataRequest dataRequest = (DataRequest) packet;
logger.info(String.format("%s: detail %s", prefix, prettyPrintObjectForLogging(dataRequest.getObject())));
}
if (packet instanceof DataResponse) {
DataResponse dataResponse = (DataResponse) packet;
for (int i = 0; i < dataResponse.getObjects().size(); i++) {
Object o = dataResponse.getObjects().get(i);