class ResourceConverterImpl implements ResourceConverter<ResourceType, ClientType> {

    protected void addValidExceptions(List<Exception> includedExceptions, List<Exception> allFoundExceptions,  ToServerConversionOptions options) {
        boolean isAddAllExceptions = true;
        if (options.getAdditionalProperties() != null) {
            // JRS-19513
            // when skipDatabaseMetadataCheck is set to true, we should ignore exception from profile attribute schemas also
            String[] values = options.getAdditionalProperties().get(ToServerConversionOptions.SKIP_DATA_BASE_METADATA_CHECK);
            if ((values != null) && (values.length > 0) && "true".equalsIgnoreCase(values[0])) {
                isAddAllExceptions = false;
                for (Exception ex : allFoundExceptions) {
                    if (ex instanceof ErrorDescriptorException) {
                        if (!((ErrorDescriptorException) ex).getErrorDescriptor().getErrorCode().equals(ResourceGroupProfileAttributeErrorDescriptor.ERROR_CODE)) {
                            includedExceptions.add(ex);
                        }
                    }
                }
            }
        }
        if (isAddAllExceptions) {
            includedExceptions.addAll(allFoundExceptions);
        }
    }

    public  ResourceConverterImpl();

}