class AdapterMetaDataConverter {

    public AdapterMetaData convertToMetaDataOrNull(String metaDataString)  {
        try {
            return JSONAdapterSupport.FOR_UNKNOWN_ADAPTER.fromJSON(AdapterMetaData.class, metaDataString);
        } catch (AdapterException e) {
            LOG.error("Not able to convert to metadata:{}",metaDataString, e);
            return null;
        }
    }

}