+
+ private static String resolveModuleIdentifier(CompilationContext context) {
+ ConcreteModule module = context.module;
+ String identifier;
+ if (module != null) {
+ String moduleName = module.getName();
+ if (moduleName.startsWith("http://")) {
+ moduleName = moduleName.substring("http://".length());
+ }
+ identifier = moduleName.replaceAll("/", ".");
+ } else {
+ identifier = CommandSession.class.getName();
+ }
+ return identifier;
+ }