add datasource to container only if it exists