class OAuthConnectorFilter implements Function<ListResult<Connector>, ListResult<Connector>> {

    @Override
    public ListResult<Connector> apply(final ListResult<Connector> result) {
        final List<Connector> oauthConnectors = result.getItems().stream()
            .filter(c -> c.propertyEntryTaggedWith(Credentials.CLIENT_ID_TAG).isPresent()).collect(Collectors.toList());

        return ListResult.of(oauthConnectors);
    }

    private  OAuthConnectorFilter();

}