// to use the usage retrievers.
this.registryService = registryService;
if (configContext != null) {
try {
this.meteringStub = new MeteringQueryDSStub(configContext, METERING_ENDPOINT);
} catch (AxisFault e) {
String msg = "Error in creating BAM metering stub.";
log.error(msg, e);
throw new Exception(msg, e);
}