if (nsClassName.indexOf('@') >= 0) {
bonus = Double.parseDouble(nsClassName.substring(nsClassName.indexOf('@') + 1));
nsClassName = nsClassName.substring(0, nsClassName.indexOf('@'));
}
Class nsClass = Class.forName(nsClassName);
NeighbourSelection ns = (NeighbourSelection) nsClass.getConstructor(new Class[]{DataProperties.class}).newInstance(new Object[]{properties});
addNeighbourSelection(ns, bonus);
}
}