boolean enabled = Boolean.parseBoolean(enabledPar);
if (enabled) {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
ClassLoader oauth = OAuthProviderType.class.getClassLoader();
ClassLoader delegating = new DelegatingClassLoader(tccl, oauth);
Class<OAuthProviderProcessor<T>> processorClass = (Class<OAuthProviderProcessor<T>>)delegating.loadClass(oauthProviderProcessorClass);
OAuthProviderProcessor<T> oauthProviderProcessor = containerContext.getContainer().getComponentInstanceOfType(processorClass);
OAuthPrincipalProcessor principalProcessor = null;
Class<OAuthPrincipalProcessor> principalProcessorClass = (Class<OAuthPrincipalProcessor>) (principalProcessorClassName != null ? delegating
.loadClass(principalProcessorClassName) : DefaultPrincipalProcessor.class);
principalProcessor = containerContext.getContainer().getComponentInstanceOfType(principalProcessorClass);
if (principalProcessor == null) {
principalProcessor = principalProcessorClass.newInstance();
}