public Object getObjectById(Class cls, Object key) {
   checkStatus();
   return pm.getObjectById(cls, key);
 }
 /**
  * Accessor for an object given its id.
  *
  * @param id Id of the object.
  * @param validate Whether to validate the object before returning it
  * @return The object with this id
  */
 public Object getObjectById(Object id, boolean validate) {
   checkStatus();
   return pm.getObjectById(id, validate);
 }