class DefaultPersistenceManager implements PersistenceManager<T, I> {

	@Override
	public T getSingleResult(final Query<T> query) {
		Query<T> finalQuery = query;
		TypedQuery<T> typedQuery = createQuery(finalQuery.getQuery(), finalQuery.getParameters(), finalQuery.getClazz());

		return typedQuery.getSingleResult();
	}

}