private String getKey(IObjectDescriptor descriptor) { if (descriptor.hasQualifier(Named.class)) { Named namedAnnotation = descriptor.getQualifier(Named.class); return namedAnnotation.value(); } Type elementType = descriptor.getDesiredType(); return typeToString(elementType); }
protected String getTopic(IObjectDescriptor descriptor) { if (descriptor == null) return null; UIEventTopic qualifier = descriptor.getQualifier(UIEventTopic.class); return qualifier.value(); }