} else if (type == CALFeatureName.MODULE) {
return new NavAddress(MODULE_METHOD, featureName.getName(), null, null);
} else if (type == CALFeatureName.CLASS_INSTANCE) {
ClassInstanceIdentifier identifier = featureName.toInstanceIdentifier();
ModuleName moduleName = featureName.toModuleName();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put(INSTANCE_CLASS_PARAMETER, identifier.getTypeClassName().getQualifiedName());
parameters.put(INSTANCE_TYPE_PARAMETER, identifier.getTypeIdentifier());
parameters.put(INSTANCE_MODULE_PARAMETER, moduleName.toSourceText());
return new NavAddress(CLASS_INSTANCE_METHOD, null, null, parameters);
} else if (type == CALFeatureName.INSTANCE_METHOD) {
ClassInstanceIdentifier identifier = featureName.toInstanceIdentifier();
ModuleName moduleName = featureName.toModuleName();
String methodName = featureName.toInstanceMethodName();
Map<String, String> parameters = new HashMap<String, String>();
parameters.put(INSTANCE_CLASS_PARAMETER, identifier.getTypeClassName().getQualifiedName());
parameters.put(INSTANCE_TYPE_PARAMETER, identifier.getTypeIdentifier());
parameters.put(INSTANCE_MODULE_PARAMETER, moduleName.toSourceText());
parameters.put(INSTANCE_METHOD_PARAMETER, methodName);
return new NavAddress(INSTANCE_METHOD_METHOD, null, null, parameters);
}