public static Put toPut(Subscription subscription){
  Put put=new Put(Bytes.toBytes(subscription.getUser()));
  put.add(SUBSCRIPTION_CF,Bytes.toBytes(subscription.getMailbox()),MARKER_PRESENT);
  return put;
}

public static Put toPut ( Subscription subscription ) { Put put = new Put ( Bytes . toBytes ( subscription . getUser ( ) ) ) ; put . add ( SUBSCRIPTION_CF , Bytes . toBytes ( subscription . getMailbox ( ) ) , MARKER_PRESENT ) ; return put ; }
creates a put object from this subscription object
