@Override
public PersistenceQueryData encode(final PersistenceQuery persistenceQuery) {
final PersistenceQueryFindByPattern patternPersistenceQuery = downcast(persistenceQuery);
final ObjectAdapter pattern = patternPersistenceQuery.getPattern();
final ObjectData objectData = encodeObject(pattern);
return new PersistenceQueryFindByPatternData(patternPersistenceQuery.getSpecification(), objectData);
}