code: public <T> void setRiakBucketType(T obj, BinaryValue bucketType)
      {
          if (riakBucketTypeSetter != null)
          {
              if (riakBucketTypeSetter.getParameterTypes()[0].isArray())
              {
                  setMethodValue(riakBucketTypeSetter, obj, bucketType.unsafeGetValue());
              }
              else
              {
                  setMethodValue(riakBucketTypeSetter, obj, bucketType.toString());
              }
          }
          else if (riakBucketTypeField != null)
          {
              if (riakBucketTypeField.getType().equals(String.class))
              {
                  setFieldValue(riakBucketTypeField, obj, bucketType.toString());
              }
              else
              {
                  setFieldValue(riakBucketTypeField, obj, bucketType.unsafeGetValue());
              }
          }
      }
docs: TODO: charset in annotation