// replace with our own stub
helperPool.returnHelper(getRepositoryHelper());
}
private RepositoryHelper getRepositoryHelper() throws Exception {
RepositoryHelper helper = HELPERS.get(stubClass);
if (helper == null) {
Properties props = new Properties();
props.load(getClass().getClassLoader().getResourceAsStream(RepositoryStub.STUB_IMPL_PROPS));
props.put(RepositoryStub.PROP_STUB_IMPL_CLASS, stubClass);
helper = new RepositoryHelper(props);
HELPERS.put(stubClass, helper);
}
return helper;
}