class Queues {

    static <E> Stack<E> getStack(Engine engine, Serializer<Serializer> serializerSerializer, long rootRecid){
        StackRoot root = engine.get(rootRecid, new StackRootSerializer(serializerSerializer));
        return new Stack<E>(engine, root.serializer, root.headerRecid, root.useLocks);
    }

    private  Queues();

}