Add timeout parameter to getFactory and createComponentInstance methods