Example #1
0
 public M findFirstFromMetadata(String key, Object value) {
   Metadata md = MetaDataQuery.findFirstByTypeAndValue(METADATA_TYPE, key, value);
   if (md != null) {
     BigInteger id = md.getObjectId();
     return findById(id);
   }
   return null;
 }