code: public GraphObject getEntity() throws FrameworkException {
  
  		final GraphObject entity = idResource.getEntity();
  		if (entity != null) {
  
  			final String type       = SchemaHelper.normalizeEntityName(typeResource.getRawType());
  			final String entityType = entity.getClass().getSimpleName();
  
  			if (GenericNode.class.equals(entity.getClass()) || SearchCommand.getAllSubtypesAsStringSet(type).contains(entityType)) {
  				return entity;
  			}
  		}
  
  		throw new NotFoundException("Entity with ID " + idResource.getUuid() + " not found");
  	}
docs: ----- public methods -----