protected Key getMetadataKeyForBlobKey(BlobKey blobKey) {
   String origNamespace = NamespaceManager.get();
   NamespaceManager.set("");
   try {
     return KeyFactory.createKey(null, BlobInfoFactory.KIND, blobKey.getKeyString());
   } finally {
     NamespaceManager.set(origNamespace);
   }
 }
 private Entity getBlobFileIndexEntity(String creationHandle) throws EntityNotFoundException {
   DatastoreService datastore = getDatastoreService();
   return datastore.get(KeyFactory.createKey(BLOB_FILE_INDEX_KIND, creationHandle));
 }
  private Entity getBlobInfoEntityDirectly(String creationHandle) throws EntityNotFoundException {
    Entity blobFileIndexEntity = getBlobFileIndexEntity(creationHandle);
    String blobKey = getBlobKey(blobFileIndexEntity);

    return getDatastoreService().get(KeyFactory.createKey(BlobInfoFactory.KIND, blobKey));
  }