Possibility to parametrize rety count for loadFromEndpoint