key_query.addFilter(ACCOUNT_ID_PROPERTY, FilterOperator.EQUAL, subscriber);
PreparedQuery pq_key = datastore.prepare(key_query);
Entity e_subscriber = pq_key.asSingleEntity();
if(e_subscriber == null)
return false;
Key sub_key = e_subscriber.getKey();
Query q_sub_sender = new Query(SUBSCRIPTION_KIND);
q_sub_sender.setAncestor(sub_key);
q_sub_sender.setKeysOnly();
q_sub_sender.addFilter(SUBSCRIPTION_EMAIL_PROPERTY, FilterOperator.EQUAL, sender);
q_sub_sender.addFilter(SUBSCRIPTION_STATUS_PROPERTY, FilterOperator.EQUAL, "Active");
PreparedQuery pq_sender = datastore.prepare(q_sub_sender);
Entity sender_entity = pq_sender.asSingleEntity();
if(sender_entity == null)
return false;
Key sender_key = sender_entity.getKey();
Transaction txn = datastore.beginTransaction();
Entity sender_feed = new Entity(FEED_KIND, sender_key);
sender_feed.setProperty(FEED_READ_STATUS_PROPERTY, false);
sender_feed.setProperty(FEED_MESSAGE_PROPERTY, new Text(message));
sender_feed.setProperty(FEED_TIMESTAMP_PROPERTY, new Date());