if ( serviceInformation == null ) return null;
ServiceInformation newServiceInformation = new ServiceInformation();
newServiceInformation.setAtmosVersion( serviceInformation.getAtmosVersion() );
newServiceInformation.setUnicodeMetadataSupported( serviceInformation.hasFeature( com.emc.atmos.api.bean.ServiceInformation.Feature.Utf8 ) );
for ( com.emc.atmos.api.bean.ServiceInformation.Feature feature : serviceInformation.getFeatures() ) {
newServiceInformation.addFeature( feature.getHeaderName() );
}
return newServiceInformation;
}
private EsuException adaptException( AtmosException e ) {