}
if (!datas.isEmpty()) {
throw new IllegalStateException("Cannot resolve ServerInstanceDatas: " + datas);
}
if (serverInstanceDatas instanceof ReferenceCollection) {
((ReferenceCollection) serverInstanceDatas).addReferenceCollectionListener(new ReferenceCollectionListener() {
public void memberAdded(ReferenceCollectionEvent event) {
ServerInstanceData instance = (ServerInstanceData) event.getMember();
try {
addServerInstance(instance, artifactManager, writeableRepo, serverInfo, servers, live);