Add the last argument Callback Pattern

for https://issues.jboss.org/browse/AGPUSH-493