* {@link BucketProperties}
* @throws IOException
*/
static RiakBucketInfo convert(BucketProperties bucketProperties) throws IOException {
String bucketSchemaJson = toJSON(bucketProperties);
RiakBucketInfo rbi;
try {
rbi = new RiakBucketInfo(new JSONObject(bucketSchemaJson), null);
} catch (JSONException e) {
throw new IOException("Failed to create bucket schema JSON from JSON string: " + bucketSchemaJson, e);
}
return rbi;