@Override
      public void beforeUnmarshal(Object target, Object parent) {
        if (target instanceof ClientSideCellSetModel) {
          ((ClientSideCellSetModel) target).setCellSetModelListener(listener);
        }
      }
An example to scan using listener in unmarshaller for XML.
@throws Exception the exception
hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestTableScan.java