/** {@inheritDoc} */ public EntitiesDescriptor getEntitiesDescriptor(String name) throws MetadataProviderException { if (!isInitialized()) { throw new MetadataProviderException("Metadata provider has not been initialized"); } if (DatatypeHelper.isEmpty(name)) { log.debug("EntitiesDescriptor name was null or empty, skipping search for it"); return null; } EntitiesDescriptor descriptor = doGetEntitiesDescriptor(name); if (descriptor == null) { log.debug("Metadata document does not contain an EntitiesDescriptor with the name {}", name); return null; } else if (!isValid(descriptor)) { log.debug("Metadata document contained an EntitiesDescriptor with the name {}, but it was no longer valid", name); return null; } return descriptor; }