public List<RoleDescriptor> getRole(String entityID, QName roleName) throws MetadataProviderException {
        List<RoleDescriptor> roleDescriptors = null;
        for (MetadataProvider provider : getProviders()) {
            log.debug("Checking child metadata provider for entity descriptor with entity ID: {}", entityID);
            try {
                roleDescriptors = provider.getRole(entityID, roleName);
                if (roleDescriptors != null && !roleDescriptors.isEmpty()) {
                    break;
                }
            } catch (MetadataProviderException e) {
                log.warn("Error retrieving metadata from provider of type {}, proceeding to next provider",
                         provider.getClass().getName(), e);
                continue;
            }
        }
        return roleDescriptors;
    }
public List < RoleDescriptor > getRole ( String entityID , QName roleName ) throws MetadataProviderException { List < RoleDescriptor > roleDescriptors = null ; for ( MetadataProvider provider : getProviders ( ) ) { log . debug ( "Checking child metadata provider for entity descriptor with entity ID: {}" , entityID ) ; try { roleDescriptors = provider . getRole ( entityID , roleName ) ; if ( roleDescriptors != null && ! roleDescriptors . isEmpty ( ) ) { break ; } } catch ( MetadataProviderException e ) { log . warn ( "Error retrieving metadata from provider of type {}, proceeding to next provider" , provider . getClass ( ) . getName ( ) , e ) ; continue ; } } return roleDescriptors ; }
{@inheritDoc}