code: @SuppressWarnings("unchecked")
      @Override
      public final V getEntity(final NamedParameterQueryData query) {
          final Query builtQuery; // Query created from the query data
          V entity; // Entity acquired from the query
  
          checkNotNull(query, "Received a null pointer as the query");
  
          // Builds the query
          builtQuery = buildQuery(query);
  
          // Tries to acquire the entity
          try {
              entity = (V) builtQuery.getSingleResult();
          } catch (final NoResultException exception) {
              entity = null;
          }
  
          return entity;
      }
docs: Queries the entities in the repository and returns a single one.
  <p>
  The entity is acquired by building a query from the received
  {@code QueryData} and executing it.
  
  @param query
  the query user to acquire the entities
  @return the queried entity