BeanUtils.copyProperties(apiPublisher, publisher);
savePublisher.getPublisher().add(apiPublisher);
PublisherDetail publisherDetail = apiService.savePublisher(savePublisher);
List<Publisher> publishers = new ArrayList<Publisher>();
for (org.apache.juddi.api_v3.Publisher apiPublisherOut : publisherDetail.getPublisher()) {
Publisher publisherOut = new Publisher();
BeanUtils.copyProperties(publisherOut, apiPublisherOut);
publishers.add(publisher);
}
response.setSuccess(true);
response.setPublishers(publishers);