Transport transport = WebHelper.getTransport(session.getServletContext());
JUDDIApiPortType apiService = transport.getJUDDIApiService();
PublisherDetail publisherDetail = apiService.getPublisherDetail(getPublisherDetail);
org.apache.juddi.api_v3.Publisher publisher = publisherDetail.getPublisher().get(0);
if ("true".equalsIgnoreCase(publisher.getIsAdmin())) {
UDDIClerkManager manager = WebHelper.getUDDIClerkManager(session.getServletContext());
logger.info("managerName=" + manager.getName());
manager.restart();
response.setMessage("Successfull manager restart.");
response.setSuccess(true);
} else {
response.setMessage("Only publishers with Admin privileges can perform a restart.");
response.setSuccess(false);