Adapt social configuration to new Java configuration style. SOCIAL-399