public String getTerminologyOid(final Object object) { Preconditions.checkNotNull(object, "Object argument cannot be null."); for (final IConfigurationElement element : Platform.getExtensionRegistry().getConfigurationElementsFor(REPRESENTATION_EXTENSION_POINT_ID)) { final String representationClass = element.getAttribute(CLASS_ATTRIBUTE); if (ClassUtils.isClassAssignableFrom(object.getClass(), representationClass)) { final String terminologyComponentId = element.getAttribute(TERMINOLOGY_COMPONENT_ID_ATTRIBUTE); return getTerminologyOidByTerminologyComponentId(terminologyComponentId); } } throw new IllegalArgumentException("No terminology extension has been registered for the passed in object: " + object.getClass()); }