}
if (wasClosed) {
// this can happen if you are calling get/release and then get again
logger.info("helper has already been closed and is being re-opened.");
}
Context appContext = context.getApplicationContext();
if (factory == null) {
if (helperClass == null) {
innerSetHelperClass(lookupHelperClass(appContext, context.getClass()));
}
helper = constructHelper(helperClass, appContext);