public void injectMembers(T instance) {
try {
CreationUtils.injectFields(instance, classMetaData, RuntimeContextTLS.getRuntimeContext());
} catch (IOException e) {
logger.error(Messages.getMessage("injectionFailureSingleton"), instance.getClass());
throw new ObjectCreationException(e);
} catch (PrivilegedActionException e) {
logger.error(Messages.getMessage("injectionFailureSingleton"), instance.getClass());
throw new ObjectCreationException(e);
}
}