JAXBContextImpl context = (JAXBContextImpl)endPoint.getSEIModel().getJAXBContext();
Map<String,Object> service = new TreeMap<String, Object>();
metadataModel.put(endPoint.getServiceName().getLocalPart(), service );
// TODO this method gets back all available service and ports. Filter only specified service.
Module modules = endPoint.getContainer().getSPI(com.sun.xml.ws.api.server.Module.class);
/*
* Iterate through all bind endpoints to get service ports and operations
*/
for(BoundEndpoint endPointObj : modules.getBoundEndpoints()){
if(endPointObj.getEndpoint().getBinding().getBindingID() == JSONBindingID.JSON_BINDING){
Map<String,Object> portJSONMap = new TreeMap<String, Object>();
service.put(endPointObj.getEndpoint().getPortName().getLocalPart(), portJSONMap);
SEIModel seiModel = endPointObj.getEndpoint().getSEIModel();