ServiceBuilder builder = getServiceBuilder();
ServiceInfo serviceInfo = builder.createService();
File jsFile = getOutputFile(builder.getOutputFile(), serviceInfo.getName().getLocalPart() + ".js");
BasicNameManager nameManager = BasicNameManager.newNameManager(serviceInfo, null);
NamespacePrefixAccumulator prefixManager = new NamespacePrefixAccumulator(serviceInfo
.getXmlSchemaCollection());
Collection<SchemaInfo> schemata = serviceInfo.getSchemas();
try {
FileOutputStream fileOutputStream = new FileOutputStream(jsFile);