Add constructor-arg property in bean declaration to call a custom constructor