public void removeEndpoint(String endpoint) {
EndpointsConfig endpoints = getConfig().getEndpoints();
for (int c = 0; c < endpoints.sizeOfEndpointArray(); c++) {
if (endpoints.getEndpointArray(c).equals(endpoint)) {
endpoints.removeEndpoint(c);
notifyPropertyChanged(ENDPOINT_PROPERTY, endpoint, null);
break;
}
}
}