added auto expand of Provider resource on Directory creation if provider is set