//Wscompile to generate the artifacts for clients too.
//service-ref element can be in client in web.xml, application-client.xml, sun-ejb-jar.xml
//Fix for issue 16015
BundleDescriptor bundleDesc = dc.getModuleMetaData(BundleDescriptor.class);
if (bundleDesc.hasWebServiceClients()) {
JAXRPCCodeGenFacade jaxrpcCodeGenFacade = habitat.getByContract(JAXRPCCodeGenFacade.class);
if (jaxrpcCodeGenFacade != null) {
jaxrpcCodeGenFacade.run(habitat,dc,getModuleClassPath(dc), true) ;
}
}
if (! dc.getCommandParameters(OpsParams.class).origin.isArtifactsPresent()) {
// only generate artifacts when there is no artifacts present