boolean withStar)
{
ModuleStatement script = getModuleStatement();
String pathinfo = script.getAddress().merge(href);
Address address = null;
try {
address = script.getAddress().resolve(href);
} catch (ZoneInactiveException e) {
listener.error(location, "Target's zone is inactive: '" + href + "'");
}
if (address.equals(script.getAddress())) {
listener.error(location, "Trying to import self: '" + href + "'");
return;
}
if (as == null) {
as = extractNameFromHref(address.getPathinfo());
}
if (!Grammar.isValidIdentifier(as)) {
listener.error(location, "Identifier '" + as + "' is invalid");
}
Import imprt = new Import(address, location, null,