proxy factiroy bean should be done in java config.