return new PersistenceQueryFindUsingApplibQuerySerializableData(query.getSpecification(), query.getApplibQuery(), query.getCardinality());
}
@Override
protected PersistenceQuery doDecode(final ObjectSpecification specification, final PersistenceQueryData persistenceQueryData) {
final PersistenceQueryFindUsingApplibQuerySerializableData data = downcast(persistenceQueryData);
final Query query = (Query) data.getApplibQuerySerializable();
final QueryCardinality cardinality = data.getCardinality();
return new PersistenceQueryFindUsingApplibQuerySerializable(specification, query, cardinality);
}