String profile = null;
if (profile == null) {
profile = JAXWSProfile.class.getName();
}
FrontEndGeneratorsProfile profileObj = null;
try {
profileObj = (FrontEndGeneratorsProfile) Class.forName(profile).newInstance();
} catch (Exception e) {
Message msg = new Message("FAIl_TO_CREATE_PLUGINPROFILE", LOG);
throw new ToolException(msg);
}
//Setup JavaModel for generators.
JavaModel jmodel = wsdlDefinitionToJavaModel(getWSDLDefinition());
if (jmodel == null) {
Message msg = new Message("FAIL_TO_CREATE_JAVA_MODEL", LOG);
throw new ToolException(msg);
}
getEnvironment().setJavaModel(jmodel);
generators = profileObj.getPlugins();
}