code: protected String getObjectName(String id) {
          // The format of the object id is <type>/<path>/<objectName>
          String result = id.substring(id.lastIndexOf('/') + 1);
          if (result.equals(PERSISTENCE_NO_NAME)) {
              result = null;
          }
          return result;
      }
docs: Get resource name from path. The format of the object id is
  
  <pre>
  type / path / objectName
  </pre>
  
  @param id
  object id
  @return resource name