model.setPackageName(packageName);
String targetNamespace = URIParserUtil.getNamespace(packageName);
if (env.optionSet(ToolConstants.CFG_TNS)) {
targetNamespace = (String)env.get(ToolConstants.CFG_TNS);
} else if (webService.targetNamespace().length() > 0) {
targetNamespace = webService.targetNamespace();
} else if (targetNamespace == null) {
Message message = new Message("SEI_CLASS_HASNO_PACKAGE", LOG);
throw new ToolException(message);
}